Commit Graph

460 Commits

Author SHA1 Message Date
Hallvard Furuseth
db49dfecc9 ITS#7131 Fix connection loop connindex usage.
connection_<first/next>() takes a ber_socket_t *index, not int*.
2012-01-24 00:47:48 +01:00
Hallvard Furuseth
2b538761e9 ITS#7125 Document connection loop API.
Code comments belong in the code, not in commit messages.
2012-01-24 00:47:48 +01:00
Kevan Carstensen
7e893c75d1 ITS#7113 fix check order in connection_write() 2012-01-21 17:27:47 -08:00
Hallvard Furuseth
221d3ccdc6 ITS#7125 Fix Connection.c_mutex usage.
Partial revert of 9e00b6cc6ce2857490b33218bdaf1339319c5f60:connection.c.
2012-01-13 16:07:39 +01:00
Kurt Zeilenga
2bbf9804b9 Happy New Year! 2012-01-01 07:10:53 -08: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
Pierangelo Masarati
415b8ec84b release mutex only *after* backend connection initialization (ITS#6993) 2011-08-22 11:23:54 -06: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
Hallvard Furuseth
6223282235 Catch ber_scanf errors properly 2011-01-12 14:41:33 +00:00
Kurt Zeilenga
966cef8c9a Happy New Year 2011-01-05 00:42:37 +00:00
Hallvard Furuseth
13f52646b2 ITS#6758 Avoid SlapReply reuse, simple cases.
Caller provides and reuses a SlapReply it does not read after
initialization.  So reinitialize or move the declaration inwards.
In case of refint, move the rs parameter into refint_repair().
2010-12-31 10:46:22 +00:00
Hallvard Furuseth
c9e85af35c ITS#6759: assert;Debug -> Debug;assert 2010-12-30 23:19:02 +00:00
Hallvard Furuseth
5feeec67d7 ITS#6747 Fix LDAP_CONNECTIONLESS Debug(), warnings 2010-12-14 15:06:32 +00:00
Kurt Zeilenga
3dadeb3efe happy belated New Year 2010-04-13 22:17:29 +00:00
Howard Chu
7c9e4df765 ITS#6412, refix #6304 - only check for writes if sockbuf NEEDS_WRITE 2009-12-04 02:44:00 +00:00
Pierangelo Masarati
c315ede9d5 connid is unsigned; offset real conns by maxrid + 1 2009-11-21 21:44:45 +00:00
Howard Chu
2f351f964d Move connection state enums to slap.h to ease debugging 2009-11-19 11:24:14 +00:00
Howard Chu
99381a43e1 ITS#6304 retry if tls_accept() returns 1 2009-11-15 22:39:35 +00:00
Howard Chu
d6fbe1c7ca ITS#6361 remove asserts 2009-11-13 23:48:51 +00:00
Howard Chu
b0fdc08e06 ITS#6276 wake up blocked writers if we're pausing 2009-08-28 23:00:46 +00:00
Howard Chu
a975c61451 More for #6220, don't timeout idle connections when writetimeout is
set and idletimeout is not.
2009-08-17 11:28:25 +00:00
Howard Chu
553f0f2ffd ITS#6220 don't check write timeouts when global_writetimeout isn't set 2009-07-21 02:04:46 +00:00
Hallvard Furuseth
0f5378c8f7 Fix Debug format in last commit 2009-06-28 21:23:59 +00:00
Howard Chu
c62ebb9da2 ITS#6189 delay resetting the SLAP_C_BINDING state until the Bind handler
has fully returned to the connection manager. This may result in
"deferring operation: binding" messages being logged again (ITS#3850) but
it should not cause any hangs.
2009-06-28 03:37:20 +00:00
Hallvard Furuseth
41fa4f03b6 More ITS#6104: mutex-protected check of o_cancel value from other thread 2009-06-05 23:26:09 +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
aa9e241581 ITS#6111 connection_state_closing() -> connection_valid() 2009-05-14 04:03:23 +00:00
Howard Chu
9767c87531 Partially revert prev commit, leave rs->sr_err == SLAPD_ABANDON 2009-05-11 04:23:51 +00:00
Howard Chu
2889cc9b1d ITS#6103 send cancelled response back to client 2009-05-11 04:16:57 +00:00
Howard Chu
f11fcf47d2 Add missing extended/intermediate handlers for fake connections 2009-04-20 09:07:48 +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
5f809c45eb check mutex in connection_write() 2009-01-29 22:43:18 +00:00
Howard Chu
1a1d226dad Revert prev commit, unnecessary 2009-01-27 18:16:28 +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
9b8dd2033f Revert prev commit, better fix - make sure client conns are closed
as expected
2009-01-16 21:49:00 +00:00
Howard Chu
a4167862c3 Client connection might get closed implicitly 2009-01-16 21:28:46 +00:00
Howard Chu
dd15627a5e Fix prev commit, c_writers check should be mutex'd 2009-01-15 21:22:35 +00:00
Howard Chu
1a171b07d3 ITS#5835 fix connection teradown when there are waiting writers 2009-01-15 20:41:40 +00:00
Howard Chu
96192064f3 ITS#5886 fix epoll hangup handling 2009-01-14 04:28:24 +00:00
Howard Chu
f54bb377df Revert prev commit 2009-01-13 00:08:36 +00:00
Howard Chu
43c1f42461 ITS#5835 tentative fix - remove bogus call to connection_close().
Note that with this change, all calls to connection_closing() and
connection_close() always occur in pairs - probably the two
functions should be collapsed into one.
2009-01-13 00:03:23 +00:00
Howard Chu
b25c74777a Let the idletimeout check kill hung writers 2008-11-28 23:45:56 +00:00
Howard Chu
e2ee5844e0 ITS#5835 change some DEBUG_TRACE messages to DEBUG_CONNS for easier debug 2008-11-28 21:09:34 +00:00
Pierangelo Masarati
e5867e2f30 improve previous commit (ITS#5814) 2008-11-16 23:58:46 +00:00
Pierangelo Masarati
b52c62e69f don't assert on unprotected data (ITS#5814) 2008-11-16 20:29:26 +00:00
Rein Tollevik
d2c08ebb4f ITS#5725: Don't enable connection for events twice. 2008-10-05 19:17:56 +00:00
Howard Chu
cfb478679f ITS#5469 check earlier for write waiters 2008-04-15 22:17:50 +00:00
Hallvard Furuseth
cd63a0c43b Warning cleanup: function ptr <=> void* at ldap_pvt_thread_pool_<set/get>key() 2008-01-11 06:07:43 +00:00
Kurt Zeilenga
c890c96d13 Happy New Year (belated) 2008-01-08 00:19:56 +00:00