Ticket #47320 - put conn on work_q not poll list if conn has buffered more_data
https://fedorahosted.org/389/ticket/47320
Reviewed by: mreynolds (Thanks!)
Branch: master
Fix Description:
If we have a connection buffer (nsslapd-connection-buffer > 0) and we have
data left over in the buffer after reading the op PDU, add the connection
to the work_q so another thread can immediately begin on the next operation
for the connection, rather than putting it back into the poll() array.
There were some race conditions introduced into connection_read_operation
so conn->c_mutex had to be locked in that function.
Platforms tested: RHEL6 x86_64
Flag Day: no
Doc impact: no