ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/src/s_bsd.c
(Generate patch)

Comparing ircd-hybrid-7.2/src/s_bsd.c (file contents):
Revision 549 by michael, Thu Apr 20 12:46:18 2006 UTC vs.
Revision 683 by michael, Thu Jun 15 14:28:59 2006 UTC

# Line 201 | Line 201 | close_connection(struct Client *client_p
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++;
# Line 245 | Line 256 | close_connection(struct Client *client_p
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    {

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)