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

Comparing ircd-hybrid/trunk/src/s_bsd.c (file contents):
Revision 3171 by michael, Sun Mar 16 11:51:48 2014 UTC vs.
Revision 3241 by michael, Sun Mar 30 16:45:31 2014 UTC

# Line 168 | Line 168 | close_connection(struct Client *client_p
168  
169    if (!IsDead(client_p))
170    {
171 <    /* attempt to flush any pending dbufs. Evil, but .. -- adrian */
172 <    /* there is still a chance that we might send data to this socket
173 <     * even if it is marked as blocked (COMM_SELECT_READ handler is called
174 <     * before COMM_SELECT_WRITE). Let's try, nothing to lose.. -adx
171 >    /*
172 >     * Flush pending write buffer, if any, but first clear the
173 >     * cork as it no longer matters, this connection is being
174 >     * closed now
175       */
176 +    DelFlag(client_p, FLAGS_CORK);
177      send_queued_write(client_p);
178    }
179  

Diff Legend

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