Kurt Zeilenga
5c878c1bf2
Happy new year (belated)
2014-01-25 05:21:25 -08:00
Howard Chu
1682691f50
Fix typo for Windows
2013-11-14 21:17:13 -08:00
Howard Chu
c0e2961f81
Drop unused var in prev commit
2013-09-07 14:58:18 -07:00
Howard Chu
88d22a1ca3
Simplify write waiter handling
...
Writer threads do their own wait using select/poll instead of
asking the listener thread. Eliminates one mutex+one condvar
per conn plus multiple wakeups of the listener thread. Also
fixes writetimeout to wait an exact time, instead of the
approximation used in the listener thread.
2013-09-07 14:53:02 -07:00
Hallvard Furuseth
f38c8b79d4
ITS#7543 Fix log output "conn=-1 ... ACCEPT"
2013-03-18 20:28:07 +01:00
Kurt Zeilenga
0fd1bf30b8
Happy New Year
2013-01-02 10:22:57 -08:00
Howard Chu
f13ba102e1
ITS#7450 enforce SLAPD_MAX_DAEMON_THREADS
...
Also allow the max to be redefined at compile time. Of course, there is no
legitimate reason to do so.
2012-11-25 19:43:49 -08:00
Hallvard Furuseth
e6a25b2db6
ITS#7233 Fix slapd listener initialization.
...
This broke if i was incremented before the new thread read i:
for(...; i++) { ldap_pvt_thread_create(,,, &i); ... }
2012-04-07 14:13:50 +02:00
Kurt Zeilenga
2bbf9804b9
Happy New Year!
2012-01-01 07:10:53 -08:00
Howard Chu
42a7fcf19a
ITS#6548,#7092 don't pass hangup events to reader thread
2011-11-19 13:57:56 -08:00
Pierangelo Masarati
ca95d353a4
silence warning
2011-09-09 01:09:04 +02:00
Pierangelo Masarati
d324ab5c74
import ITS#6925 patch; fix peeraddr variable name clash in LDAP_CONNECTIONLESS code; fix scope of addr[] when inet_ntop(3) is used
2011-09-09 01:09:04 +02:00
Howard Chu
9e00b6cc6c
Add strictrefresh syncrepl option
...
Only affects delta-syncrepl - stop listening to clients while
refresh is running.
2011-04-15 11:13:38 -07:00
Howard Chu
1cfe042f53
ITS#6870 fix winsock wake_sds init
2011-03-24 10:38:09 +00:00
Howard Chu
0ae659ad87
sl_busy is used as a boolean so just set it, don't increment it
2011-03-17 17:19:25 +00:00
Kurt Zeilenga
966cef8c9a
Happy New Year
2011-01-05 00:42:37 +00:00
Hallvard Furuseth
5feeec67d7
ITS#6747 Fix LDAP_CONNECTIONLESS Debug(), warnings
2010-12-14 15:06:32 +00:00
Hallvard Furuseth
a5d1029f53
ITS#6736: Delay destruction of slap_listeners[]
2010-12-06 08:17:00 +00:00
Pierangelo Masarati
abc5b002a7
blind fix for ITS#6621
2010-08-13 00:55:57 +00:00
Howard Chu
5cf46a8820
Fix up winsock init
2010-08-06 03:32:42 +00:00
Howard Chu
8cddd34852
Add support for multiple listener threads. Lightly tested on Linux,
...
Winsock needs a couple more tweaks
2010-08-06 03:24:24 +00:00
Kurt Zeilenga
3dadeb3efe
happy belated New Year
2010-04-13 22:17:29 +00:00
Howard Chu
7946c100a4
ITS#6322 cleanup close_listeners()
2009-12-30 20:33:27 +00:00
Howard Chu
d6fbe1c7ca
ITS#6361 remove asserts
2009-11-13 23:48:51 +00:00
Howard Chu
2a334baba6
ITS#6372 make wake_sds non-blocking
2009-11-11 00:21:03 +00:00
Pierangelo Masarati
b7a9a4a65f
add support for TCP buffer configuration (ITS#6234)
2009-08-17 22:53:15 +00:00
Hallvard Furuseth
461a2135fb
Silence warning. Also avoids pointless umask(0) when umask already is 0.
2009-07-06 23:19:52 +00:00
Howard Chu
e6173ac9c2
ITS#5836 more for 1.432, writetimeout wasn't taking effect if
...
idletimeout wasn't also set. Also, timeout check would keep getting
pushed back if multiple writers were waiting.
2009-07-06 21:02:28 +00:00
Howard Chu
81b4184975
Fix prev commit
2009-06-05 00:01:11 +00:00
Howard Chu
8edeaefe72
ITS#6056 partially revert ITS#5886, close sequencing was broken
2009-05-28 17:46:25 +00:00
Howard Chu
d70afbe6d1
Add global_host_bv, why do we still have bare char *s lying around...
2009-04-19 23:25:41 +00:00
Howard Chu
417b0b7013
ITS#6039 Winsock fixes
2009-04-11 04:03:09 +00:00
Hallvard Furuseth
1e470657b2
ITS#6037: save/restore errno in signal handlers
2009-03-26 22:11:06 +00:00
Howard Chu
f2cc7e8a0a
ITS#5836, add writetimeout keyword for timing out hung writers
2009-03-10 00:42:10 +00:00
Howard Chu
2a3076e597
Fix typo in prev commit
2009-02-12 17:07:21 +00:00
Howard Chu
b37c553c71
Ignore hangups on removed sockets
2009-02-12 17:05:00 +00:00
Howard Chu
e80731bc19
revert epoll edge-triggered listening, just use it to silence hangup events
2009-01-29 15:15:16 +00:00
Howard Chu
d3f1921cc9
Mostly revert prev commit
2009-01-27 18:18:39 +00:00
Howard Chu
05ec9552a7
Use epoll in edge-triggered mode
2009-01-27 08:00:50 +00:00
Kurt Zeilenga
4af9eb9715
Update copyright notices
2009-01-22 00:40:04 +00:00
Howard Chu
863754cb82
Fix prev commit, was hanging up on write events
2009-01-16 22:32:21 +00:00
Howard Chu
96192064f3
ITS#5886 fix epoll hangup handling
2009-01-14 04:28:24 +00:00
Howard Chu
c6b18cd7c5
ITS#5855 fix Windows wake_sds close
2009-01-05 22:09:10 +00:00
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