| 201 |
|
|
| 202 |
|
assert(NULL != client_p); |
| 203 |
|
|
| 204 |
+ |
if (!IsDead(client_p)) |
| 205 |
+ |
{ |
| 206 |
+ |
/* attempt to flush any pending dbufs. Evil, but .. -- adrian */ |
| 207 |
+ |
/* there is still a chance that we might send data to this socket |
| 208 |
+ |
* even if it is marked as blocked (COMM_SELECT_READ handler is called |
| 209 |
+ |
* before COMM_SELECT_WRITE). Let's try, nothing to lose.. -adx |
| 210 |
+ |
*/ |
| 211 |
+ |
ClearSendqBlocked(client_p); |
| 212 |
+ |
send_queued_write(client_p); |
| 213 |
+ |
} |
| 214 |
+ |
|
| 215 |
|
if (IsServer(client_p)) |
| 216 |
|
{ |
| 217 |
|
ServerStats->is_sv++; |
| 256 |
|
else |
| 257 |
|
ServerStats->is_ni++; |
| 258 |
|
|
| 248 |
– |
if (!IsDead(client_p)) |
| 249 |
– |
{ |
| 250 |
– |
/* attempt to flush any pending dbufs. Evil, but .. -- adrian */ |
| 251 |
– |
/* there is still a chance that we might send data to this socket |
| 252 |
– |
* even if it is marked as blocked (COMM_SELECT_READ handler is called |
| 253 |
– |
* before COMM_SELECT_WRITE). Let's try, nothing to lose.. -adx |
| 254 |
– |
*/ |
| 255 |
– |
ClearSendqBlocked(client_p); |
| 256 |
– |
send_queued_write(client_p); |
| 257 |
– |
} |
| 258 |
– |
|
| 259 |
|
#ifdef HAVE_LIBCRYPTO |
| 260 |
|
if (client_p->localClient->fd.ssl) |
| 261 |
|
{ |