Commit Graph

421 Commits

Author SHA1 Message Date
Hallvard Furuseth
880a2888d8 Message waiting for N threads to terminate -> for N operations/tasks to finish 2008-09-18 19:50:32 +00:00
Quanah Gibson-Mount
5d3e5ecbd9 Fix missing space 2008-07-24 22:41:22 +00:00
Pierangelo Masarati
65cfb058cb don't close invalid sockets (blind fix to ITS#5606) 2008-07-12 16:31:34 +00:00
Howard Chu
9d787d8d42 ITS#5489 move assert 2008-05-23 15:29:12 +00:00
Howard Chu
b6b3461cf9 Do connections_init() sooner 2008-05-18 15:58:10 +00:00
Kurt Zeilenga
c890c96d13 Happy New Year (belated) 2008-01-08 00:19:56 +00:00
Pierangelo Masarati
20f2548c82 fix declarations of buffers for numeric strings; other related cleanup 2007-12-15 15:23:23 +00:00
Howard Chu
eb16972d23 Streamlined Winsock connection management 2007-11-26 17:03:26 +00:00
Howard Chu
233632fa04 Use per-thread slap_counters to eliminate lock contention 2007-10-25 08:45:00 +00:00
Ralf Haferkamp
a57a24dab8 tcpd.h is already include in slap.h 2007-08-24 16:09:50 +00:00
Pierangelo Masarati
9a00bbb35f add support for session tracking (draft-wahl-ldap-sessio) to proxy backends requests 2007-08-22 15:49:35 +00:00
Hallvard Furuseth
6f2d816df4 ITS#5035 - return ber_socket_t instead of ptrdiff_t from SLAP_EPOLL_EV_PTRFD().
Fixes a printf format bug.
2007-07-01 13:43:15 +00:00
Hallvard Furuseth
c60f7c1fd2 For ITS#4943: Axe thread pool semaphore code 2007-06-10 23:37:49 +00:00
Hallvard Furuseth
3750520f6f Fix HP-UX crash: Replace socklen_t with ber_socklen_t from configure. ITS#4629. 2007-06-09 23:35:20 +00:00
Hallvard Furuseth
584ea90db2 Remove unused variables 2007-05-09 19:11:44 +00:00
Hallvard Furuseth
bbc719ca56 ITS#4948: '#if <undefined macro>' -> '#ifdef' warning cleanup 2007-05-09 18:17:10 +00:00
Howard Chu
63bef22335 Cleanup conditional arg in prev commit 2007-03-31 00:40:22 +00:00
Howard Chu
c6df30118f ITS#4893 fix prev commit 2007-03-25 12:18:06 +00:00
Howard Chu
7426ab07fc ITS#4893 define LDAP_PF_LOCAL_SENDMSG in <ac/socket.h> if a message must
be sent to transmit client credentials. Buffer the message data.
2007-03-25 04:40:22 +00:00
Pierangelo Masarati
2ad757793d make sure unsigned time_t doesn't hurt (follow-on to ITS#4872) 2007-03-17 14:45:41 +00:00
Howard Chu
0787d0c434 Always initialize global_host 2007-02-03 02:53:10 +00:00
Kurt Zeilenga
da6d9eb046 happy new year 2007-01-02 20:00:42 +00:00
Howard Chu
d0467a5961 cleanup debug msg 2006-12-27 01:15:05 +00:00
Pierangelo Masarati
97e6225cc9 implement full IPv6 support in ACLs; use URL notation (as suggested by Howard) to disambiguate parsing (ITS#4756) 2006-12-15 01:11:11 +00:00
Howard Chu
c8a000cb7b ITS#4765 init slap_daemon.sd_actives 2006-12-01 15:02:14 +00:00
Pierangelo Masarati
6f1d78b3ce s/fprintf/Debug/; improve logging 2006-11-05 09:24:51 +00:00
Pierangelo Masarati
40a893a07e temporarily change umask only if required 2006-10-15 18:28:22 +00:00
Pierangelo Masarati
8567ce8eed fix previous commit 2006-10-15 18:24:30 +00:00
Pierangelo Masarati
59e60483fa create IPC sockets with wide-open permissions (0222 might suffice; ITS#4709) 2006-10-14 17:35:50 +00:00
Pierangelo Masarati
cbc238721a typo in previous commit... 2006-09-17 22:24:41 +00:00
Pierangelo Masarati
036289f9c4 support for Solaris' /dev/poll (need to manually define SLAP_X_DEVPOLL; needs work yet) 2006-09-17 22:17:34 +00:00
Pierangelo Masarati
dd4d074068 reorganize select interface (ready for /dev/poll) 2006-09-17 22:09:50 +00:00
Pierangelo Masarati
417ad40596 destroy socket set (man page for epoll_create(2) states that close(2) must be called on the returned filedes) 2006-08-31 13:51:25 +00:00
Howard Chu
d7be822a2a Fix prev commit 2006-08-19 06:27:11 +00:00
Howard Chu
69fa2d9f93 Move ber_sockbuf_free() to slapd_remove() to avoid using AC_SOCKET_INVALID 2006-08-18 23:54:24 +00:00
Howard Chu
098153c5bb Move socket close into slapd_remove, don't close until after socket
is removed from daemon control.
2006-08-17 00:44:38 +00:00
Hallvard Furuseth
ce44bdbc37 Constify slapd_slp_attrs (assigned a const char* in main.c:slapd_opt_slp()) 2006-05-25 16:32:43 +00:00
Howard Chu
0b79eab474 Cleanup epoll read / error behavior 2006-05-14 00:26:33 +00:00
Howard Chu
d8aabb008f ITS#4537 placate braindead compiler 2006-05-11 18:04:26 +00:00
Pierangelo Masarati
af1f87b96d ldap_pvt_runqueue_next_sched() may return a pointer to data that's freed by task run earlier (ITS#4517) 2006-05-02 20:32:37 +00:00
Kurt Zeilenga
153e81817f ITS#4414: SLP attributes support from Peter Marschall 2006-04-27 19:36:40 +00:00
Howard Chu
daec2febfb ITS#4476 revert connection_write processing back into main thread 2006-04-06 04:34:37 +00:00
Howard Chu
90c8a53db4 plug leaks 2006-03-31 11:15:26 +00:00
Howard Chu
a5eef48123 Fix ITS#4395, check for non-read/write epoll events 2006-02-10 18:27:50 +00:00
Howard Chu
bebfc49d71 ITS#4370 always init slap_daemon mutexes 2006-01-25 01:36:18 +00:00
Howard Chu
2b0bccc74c ITS#4357 Solaris occasionally returns ENOSYS when selecting on a descriptor
in the midst of closing. Instead of special casing EBADF, ENOSYS, and
WSAENOTSOCK, just count if any error occurs two or more times in a row,
and log if so. Don't treat any error as fatal unless it occurs many times
in a row (SLAPD_EBADF_LIMIT).
2006-01-20 08:13:54 +00:00
Howard Chu
9b2ee679e8 Fix WAKE_LISTENER 2006-01-15 15:40:53 +00:00
Howard Chu
f16d101033 Log select() failure at DEBUG_ANY, since it triggers a shutdown. 2006-01-13 20:28:31 +00:00
Howard Chu
84429e8bcb ITS#4338 delete extraneous slapd_close() calls. Descriptors that were in
the event set must be removed using slapd_remove() and the whole sequence
must be protected with the slap_daemon.sd_mutex to close them properly.
Otherwise it will wind up closing valid, freshly opened sockets, or closing
dead sockets twice, etc. It's unnecessary to do any close management here
since connection.c already does the correct teardown sequence.
2006-01-13 17:30:03 +00:00
Kurt Zeilenga
acbb5cf689 Happy new year! 2006-01-03 23:11:52 +00:00