Commit Graph

327 Commits

Author SHA1 Message Date
Pierangelo Masarati
d36099aa62 cleanup (related to ITS#5760) 2009-02-15 22:16:21 +00:00
Howard Chu
673405bc2e More for prev commit 2009-01-25 22:06:24 +00:00
Howard Chu
01cf75383e Fix prev commit 2009-01-25 21:15:45 +00:00
Howard Chu
ef846c9105 More for prev commit 2009-01-25 03:04:43 +00:00
Howard Chu
b69b2d2f69 More for prev commit 2009-01-25 01:53:32 +00:00
Kurt Zeilenga
4af9eb9715 Update copyright notices 2009-01-22 00:40:04 +00:00
Howard Chu
13ddc561d8 Fix prev commit - check for c_state == CLOSING first 2009-01-15 21:31:58 +00:00
Howard Chu
1a171b07d3 ITS#5835 fix connection teradown when there are waiting writers 2009-01-15 20:41:40 +00:00
Hallvard Furuseth
93c75ea669 Cleanup: Move snprintf preformatting into unused Statslog() argument 2008-10-28 22:27:53 +00:00
Pierangelo Masarati
ffb66f41bb anticipate Statslog to avoid using dangling pointers (ITS#5775) - HEADS-UP: now 'ENTRY dn=' may appear also in case the PDU can't be sent 2008-10-28 22:02:01 +00:00
Pierangelo Masarati
515733a656 make sure sr_entry is not used if unset (ITS#5742) 2008-10-17 00:03:17 +00:00
Hallvard Furuseth
7b3bdf2185 Warning cleanup: signed meets unsigned. ber_flatten2() returns -1 on
error, not LBER_ERROR.
2008-10-13 10:18:15 +00:00
Pierangelo Masarati
a0e3e68a02 allow controls deletion to be deferred; pass response controls back to frontend in extops (ITS#5711) 2008-09-27 10:06:43 +00:00
Howard Chu
d14ebfc070 ITS#5461 initialize rs->sr_tag, sr_msgid for Abandons too 2008-05-28 01:48:41 +00:00
Hallvard Furuseth
0669adf635 ITS#5340 fixes:
slap_send_ldap_result() when rs->sr_flags & REP_REF_MUSTBEFREED:
- Do not return with rs->sr_ref == <freed data>, set it to NULL instead.
- Plug memory leak when op->o_domain_scope || op->o_protocol<LDAP_VERSION3.
send_ldap_response():
- Paranoia: Reset REP_MATCHED_MUSTBEFREED and REP_REF_MUSTBEFREED,
  in case the caller reuses the SlapReply without resetting the flags.
2008-04-10 12:54:11 +00:00
Hallvard Furuseth
84c2a01c3b ITS#5364, thread pool efficiency:
Use ldap_pvt_thread_pool_pausing(): pause check for slapd without locking.
2008-02-10 16:25:05 +00:00
Kurt Zeilenga
c890c96d13 Happy New Year (belated) 2008-01-08 00:19:56 +00:00
Howard Chu
bcc108a7ff ITS#5268 don't replicate dSAOperation attributes unless specifically
requested. (It doesn't actually make sense to request them in that
case, but allow it.)
2007-12-08 17:44:15 +00:00
Pierangelo Masarati
7aeac21440 silence warnings 2007-11-23 12:47:53 +00:00
Howard Chu
233632fa04 Use per-thread slap_counters to eliminate lock contention 2007-10-25 08:45:00 +00:00
Howard Chu
68ebee4726 Concurrency tweaks:
store conn->c_sd, don't use ber_sockbuf_ctrl to retrieve it.
  use per-thread free lists for operations, no mutexes needed.
2007-10-25 02:22:40 +00:00
Howard Chu
b9f012377a ITS#5197 fully revert prev commit, use thr_stub 2007-10-23 21:14:39 +00:00
Howard Chu
faa76b761d Forced commit, partially revert prev commit 2007-10-23 20:57:13 +00:00
Howard Chu
3877fc9359 ITS#5197 don't check thread pool if NO_THREADS 2007-10-23 20:55:28 +00:00
Howard Chu
a1a63bead0 ITS#4188 check for pool pause every 64 entries. (probably should make
this number tunable.)
2007-10-08 01:15:49 +00:00
Howard Chu
f9bc1426ad Fix SORTED_RESULTS check 2007-08-29 23:57:55 +00:00
Pierangelo Masarati
af9233b9df use LDAP_RES_UNSOLICITED for the response message id 2007-08-26 15:06:52 +00:00
Howard Chu
a2405e0a7e Axe slurpd / replog support 2007-04-06 00:21:02 +00:00
Kurt Zeilenga
da6d9eb046 happy new year 2007-01-02 20:00:42 +00:00
Pierangelo Masarati
07f61475c7 read entry needs o_bd for ACLs 2006-10-14 00:59:22 +00:00
Howard Chu
d6d31af4f0 send_search_reference should propagate errors 2006-09-21 09:28:49 +00:00
Howard Chu
57c329a3af ITS#4606 errno is not per-thread on WIN32, always use WSAGet/SetLastError
(with notable exceptions: ignore tests for EINTR which winsock never sets)
2006-09-14 06:35:34 +00:00
Kurt Zeilenga
97fa3f1efd More LDAP_DEVEL cleanup
Rename ManageDIT to Relax
2006-08-22 00:45:16 +00:00
Hallvard Furuseth
61d71d95b9 Cast isspace() arg to unsigned char. (Update to previous change.) 2006-04-24 20:32:23 +00:00
Pierangelo Masarati
19c5f261e5 re-fix ITS#4495 working around atoi() limitations 2006-04-19 23:57:02 +00:00
Hallvard Furuseth
5181a522c1 Revert rev 1.276, which broke back-shell "RESULT\ncode: <value>\n" (ITS#4495) 2006-04-19 22:03:13 +00:00
Pierangelo Masarati
dfc8e7f6b8 better fix for ITS#4483 2006-04-09 22:29:42 +00:00
Kurt Zeilenga
8fb8b17c04 Code which doesn't hanlding allocation failure should use
ch_ routines, not SLAP_ macros
2006-04-06 21:44:05 +00:00
Pierangelo Masarati
44a75a03c0 allow overlays to inject an abandon without returning SLAPD_ABANDON 2006-04-01 18:59:26 +00:00
Pierangelo Masarati
17bb32af28 enable new response/cleanup playlist #ifdef LDAP_DEVEL 2006-01-07 11:40:39 +00:00
Pierangelo Masarati
4a481a83d3 improve previous commit; now passes all tests 2006-01-05 13:57:34 +00:00
Pierangelo Masarati
9586fed42f all in all, valgrind was right; this now works as intended 2006-01-05 11:05:40 +00:00
Pierangelo Masarati
44e3b0b481 experimental fix to callback looping 2006-01-04 21:13:57 +00:00
Kurt Zeilenga
acbb5cf689 Happy new year! 2006-01-03 23:11:52 +00:00
Pierangelo Masarati
aecf0f4164 typos in comments (very pedantic...) 2005-12-26 17:00:12 +00:00
Luke Howard
dcfd499eca Set ors_slimit in slap_read_controls so that slap_send_search_entry()
check passes
2005-12-24 07:40:12 +00:00
Howard Chu
5e3820fd7a ITS#4237 don't update sc_prev after a callback has been freed. 2005-12-01 00:48:38 +00:00
Kurt Zeilenga
c106f49029 Primitive handling of dontUseCopy (always error). 2005-11-26 07:09:59 +00:00
Pierangelo Masarati
b3c8a976ec use LDAP_SIZELIMIT_EXCEEDED; rework the return values of slap_send_search_entry(); silence a few warnings 2005-11-25 22:17:24 +00:00
Howard Chu
7a2f05016c Don't decrement op->ors_slimit, just compare with rs->sr_nentries. 2005-11-25 20:44:56 +00:00