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
639d678592
cleanup struct declarations
2007-03-20 01:07:10 +00:00
Howard Chu
06212e9de9
Plug leaks
2007-02-16 02:22:24 +00:00
Howard Chu
e28627f1e2
Added "slapd" rewrite map handler, connection_fake_init2 to use existing
...
tmpmemctx without reinitializing
2007-02-14 08:51:47 +00:00
Howard Chu
9b5dbf9e35
Remove extraneous debug statements
2007-01-25 13:53:08 +00:00
Howard Chu
4b4072eb44
Use thread keys to plug slapi leak in connection_fake_init()
2007-01-25 11:55:40 +00:00
Howard Chu
0126348461
connection_fake_init can leak SLAPI extensions.
2007-01-25 07:22:39 +00:00
Quanah Gibson-Mount
7b503e6290
logging cleanup
2007-01-12 22:55:39 +00:00
Kurt Zeilenga
da6d9eb046
happy new year
2007-01-02 20:00:42 +00:00
Howard Chu
ff93c6bef7
Don't log EAGAIN returns from ber_get_next()
2006-12-31 16:15:45 +00:00
Howard Chu
d2fc667fe7
Fix connection_get race condition on Windows
2006-12-26 23:40:00 +00:00
Howard Chu
df54b1a244
In connections_shutdown - check for Uninitialized struct first, since
...
attempting to lock an unint'd mutex may crash on some platforms. And
there is no chance for an unint'd conn to get init'd while shutdown
is occurring, so the unprotected check of struct state is safe.
2006-12-21 06:06:32 +00:00
Pierangelo Masarati
d29d83a80e
protect assertion behind mutex (test should be atomic anyway...)
2006-12-14 19:22:00 +00:00
Howard Chu
4d9d4e2538
Fix connections_shutdown()
2006-12-14 02:12:39 +00:00
Pierangelo Masarati
9fdb9b6e02
give cleanup another chance to free the temporary callback (ITS#4771)
2006-12-07 19:44:04 +00:00
Pierangelo Masarati
0b29856b16
don't use conditionals in macro arguments (ITS#4769)
2006-12-06 11:39:07 +00:00
Howard Chu
47793aa3c9
Fix typo in prev commit
2006-11-09 06:47:47 +00:00
Howard Chu
6ac62a7573
Fix - failed Binds could leave a closing connection open.
2006-11-09 01:42:21 +00:00
Howard Chu
44475373db
Fix prev commit again (ITS#4722)
2006-10-26 22:10:12 +00:00
Howard Chu
9a3138cb55
Fix typo in prev commit
2006-10-17 19:45:55 +00:00
Howard Chu
eb16636abe
Tweak prev commit, add more notes (re ITS#4667)
2006-10-17 19:37:10 +00:00
Howard Chu
354e90a0d9
From rev 1.373, releasing the mutex means connection_close() may get called
...
from another thread. Drop the assert, just return instead.
2006-10-17 19:31:42 +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
Howard Chu
3e50687bf7
In connection_next, sockets may not be contiguous on Unix if syslog etc are
...
active. Just search to the end of the table, tracking the max isn't worth
the lock overhead.
2006-09-11 21:19:38 +00:00
Howard Chu
f82ee25ec1
ITS#4667 in connection_closing, release c_mutex to allow waiters
...
to clear out.
2006-09-08 23:31:53 +00:00
Howard Chu
da6a4bcd3e
ITS#4667 fix assert in connection_next() for PENDING connections
2006-09-08 23:30:31 +00:00
Pierangelo Masarati
0d2e2772d5
move req2op selection into a helper
2006-09-04 07:17:34 +00:00
Pierangelo Masarati
faa13725e6
remove unnecessary assertion; add test for pending ops
2006-09-01 10:41:54 +00:00
Pierangelo Masarati
9e8725a3cc
add an assertion to track ITS#4659; minor cleanup
2006-09-01 10:00:50 +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
2e3e7ed14f
Fix prev commit
2006-08-18 01:17:44 +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
Pierangelo Masarati
f26bef66c6
cleanup
2006-05-20 15:49:18 +00:00
Howard Chu
9de3d9c277
Fix idletimeout deadlock
2006-05-19 22:47:33 +00:00
Howard Chu
813b95941e
Fixed version of rev 1.361
2006-05-14 03:37:17 +00:00
Howard Chu
1cf58aba1c
Revert prev commit, spoke too soon, close race condition came back.
2006-05-13 12:35:12 +00:00
Howard Chu
d74a230229
Simplify connection mutexes
2006-05-13 11:50:00 +00:00
Luke Howard
87051a2a4a
ITS#4525
2006-05-08 08:58:33 +00:00
Howard Chu
a8f8dfe747
Use ldap_pvt_thread_pool_tid()
2006-05-02 00:58:05 +00:00
Howard Chu
daec2febfb
ITS#4476 revert connection_write processing back into main thread
2006-04-06 04:34:37 +00:00
Hallvard Furuseth
da0c0360e4
Warnings: Unused vars. funcptr=0, not =NULL. if(b=...) -> if((b=...) != NULL).
2006-04-02 19:54:24 +00:00
Pierangelo Masarati
e21ec88c88
fix previous commit (ITS#4465)
2006-04-01 15:31:35 +00:00
Pierangelo Masarati
3aac54f089
fix bound check (ITS#4449)
2006-04-01 15:22:13 +00:00
Pierangelo Masarati
fc89650cce
add a cleanup handler for binds (ITS#4465)
2006-04-01 15:21:00 +00:00
Howard Chu
c41a151d1e
Cleanup
2006-03-31 12:53:32 +00:00
Kurt Zeilenga
5487575086
Add link to FAQ entry on BDB tuning
2006-03-30 17:56:56 +00:00
Kurt Zeilenga
71511a0569
more txn infrastructure
2006-03-08 05:54:10 +00:00
Kurt Zeilenga
247536744e
Some more txn infrastructure
2006-03-07 08:07:21 +00:00
Pierangelo Masarati
693697bfd9
cleanup callback freeing
2006-01-06 16:24:37 +00:00
Kurt Zeilenga
acbb5cf689
Happy new year!
2006-01-03 23:11:52 +00:00
Luke Howard
d8647e5c07
Create SLAPI object extensions in connection_fake_init()
2005-12-24 10:59:46 +00:00
Kurt Zeilenga
c106f49029
Primitive handling of dontUseCopy (always error).
2005-11-26 07:09:59 +00:00
Pierangelo Masarati
4dcccd3ca2
valgrind keeps complaining (it makes sense) but the bus error problem disappeared
2005-11-14 23:14:31 +00:00
Howard Chu
ea92291cb6
ITS#4158 still more
2005-11-08 09:53:38 +00:00
Howard Chu
6f9aa99d0c
ITS#4158 move SASL bind finalization to bind_cb.
2005-11-07 23:38:52 +00:00
Pierangelo Masarati
d0ca539cc9
fix num args in Debug()
2005-11-06 23:37:52 +00:00
Howard Chu
ee8bea214a
Fix ITS#4151 - set sasl_bind_in_progress in bind_cb
2005-11-05 22:35:40 +00:00
Howard Chu
11f6938162
ITS#4136 fix prev commit
2005-11-03 12:45:57 +00:00
Howard Chu
30869197f8
Fix fastpath for internal clients (e.g. syncrepl) too.
2005-11-02 00:15:41 +00:00
Howard Chu
44fcfb9ed3
Fix fastpath for single-op dispatching
2005-11-01 23:53:01 +00:00
Pierangelo Masarati
7949808924
plug one-time leaks
2005-11-01 18:12:14 +00:00
Pierangelo Masarati
22ca0e457e
cleanup
2005-11-01 17:05:32 +00:00
Howard Chu
0a509c9c07
Free bind callback
2005-11-01 15:11:54 +00:00
Pierangelo Masarati
3fd5e683f2
fix size of connection array (ITS#4131)
2005-11-01 14:12:12 +00:00
Howard Chu
3d60d71ad2
Partial fix for ITS#3850, stop spurious "deferring: binding" messages.
...
Make sure conn state is reset before reply reaches client. Hang still
occurs in RE22, not in RE23.
2005-10-30 09:53:15 +00:00
Howard Chu
e131aa424b
ITS#4108 fix another accept/read race condition
2005-10-29 15:16:35 +00:00
Howard Chu
4bb234bac8
ITS#4108 Cleanup accept/close race conditions.
2005-10-29 04:17:56 +00:00
Howard Chu
638b84db6e
Cleanup, fix ITS#4120
2005-10-29 02:06:32 +00:00
Kurt Zeilenga
5c125d19a9
Revise last commit
2005-10-16 20:38:48 +00:00
Kurt Zeilenga
964aa48c37
Fix TLS/SASL handling in new lightweight dispatcher
2005-10-16 20:33:01 +00:00
Kurt Zeilenga
24efc30873
Move slapd_set_read before return
...
(likely wake should be after... hmmm....)
2005-10-16 17:36:30 +00:00
Kurt Zeilenga
533394d641
disable SLAP_SEM_LOAD_CONTROL by default, needs additional review/work
...
Misc. other cleanup
2005-10-16 00:17:58 +00:00
Kurt Zeilenga
9bc19c5232
Revised lightweight dispatcher -- writers moved into worker threads
...
Presently spawns operations in separate thread to ease clr_read/wake handling.
Seems to perform reasonable well...
2005-10-15 06:54:55 +00:00
Kurt Zeilenga
577bfc477e
More cleanup
2005-10-14 22:04:03 +00:00
Kurt Zeilenga
40ff060f83
cleanup
2005-10-14 21:37:14 +00:00
Howard Chu
7dcb68f6fa
Move CSN invocations to backends
2005-10-13 11:58:44 +00:00
Kurt Zeilenga
4d0de8b3c5
cleanup
2005-10-13 04:33:01 +00:00
Kurt Zeilenga
5085d1f8ff
cleanup
2005-10-13 02:08:14 +00:00
Kurt Zeilenga
6db7e605ee
Align Operation buffers using LBER_ALIGNED_BUFFER
2005-10-12 23:17:28 +00:00
Hallvard Furuseth
27831fcde5
Include "fd=.." in Statslog message "TLS established"
2005-08-29 23:34:42 +00:00
Howard Chu
3fc2e1388a
ITS#3983 fix connection_client_stop, must reset sockbuf
2005-08-29 23:05:32 +00:00
Hallvard Furuseth
9873eb7ab0
Add missing Statslog() statements (loglevel stats/stats2):
...
"ABANDON", "STARTTLS", "CANCEL", "WHOAMI", "PASSMOD", "EXT", "INTERM",
"TLS established", SASL and Extended Response "RESULT".
In Statslog output "conn=xx fd=yy closed", append the reason in
"()" unless client or server closed the connection after Unbind.
Still missing Statslog output from a number of failed requests.
2005-08-14 00:14:58 +00:00
Pierangelo Masarati
4ceeea4efa
should fix the invalid free issue
2005-07-21 19:14:09 +00:00
Luke Howard
ffe20229dc
Move most of SLAPI frontend into overlay
2005-07-21 16:35:20 +00:00
Howard Chu
143635437a
ITS#3549 don't queue Unbind requests
2005-06-18 09:06:12 +00:00
Howard Chu
0f4a5f7445
ITS#3671 must release conn->c_mutex to allow blocked writers to exit
2005-04-28 18:36:08 +00:00
Kurt Zeilenga
3e800f20bd
<limits.h> cleanup && ITS#3643
2005-04-10 19:32:14 +00:00
Howard Chu
bf0373b486
Add conn->c_sasl_authz_dn, store SASL authzDN separately from authcDN
2005-04-03 09:38:53 +00:00
Howard Chu
6cbe778c81
ITS#3549 allow one op to progress when a socket with writewaiters
...
becomes ready to write.
2005-02-18 04:21:59 +00:00
Howard Chu
5d8ece605e
ITS#3549 cleanup abandon/cancel processing
2005-02-18 01:01:35 +00:00
Howard Chu
9f30e1e650
Delete obsolete syncprovider stuff
2005-01-14 05:19:51 +00:00
Howard Chu
b6fbfe8540
ITS#3463 additional fix
2005-01-14 02:08:02 +00:00
Kurt Zeilenga
dc0eacd40b
Happy New Year!
2005-01-01 20:49:32 +00:00
Pierangelo Masarati
a8547f5945
fix comment
2005-01-01 16:14:11 +00:00
Pierangelo Masarati
4b8e57e11f
rework operations in a table-driven manner; better exception handling
2004-12-29 12:31:06 +00:00
Pierangelo Masarati
564d1a6aff
fix previous commit (for compilers that require at least one statement after a label)
2004-12-28 22:48:43 +00:00