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

Comparing ircd-hybrid/branches/8.2.x/src/send.c (file contents):
Revision 8658 by michael, Sun Oct 28 18:12:12 2018 UTC vs.
Revision 8659 by michael, Sun Nov 18 12:53:34 2018 UTC

# Line 185 | Line 185 | send_queued_write(struct Client *to)
185    {
186      do
187      {
188 <      int want_read = 0;
188 >      bool want_read = false;
189        const struct dbuf_block *first = to->connection->buf_sendq.blocks.head->data;
190  
191        if (tls_isusing(&to->connection->fd->ssl))
# Line 193 | Line 193 | send_queued_write(struct Client *to)
193          retlen = tls_write(&to->connection->fd->ssl, first->data + to->connection->buf_sendq.pos,
194                                                       first->size - to->connection->buf_sendq.pos, &want_read);
195  
196 <        if (want_read)
196 >        if (want_read == true)
197            return;  /* Retry later, don't register for write events */
198        }
199        else
# Line 210 | Line 210 | send_queued_write(struct Client *to)
210        me.connection->send.bytes += retlen;
211      } while (dbuf_length(&to->connection->buf_sendq));
212  
213 <    if (retlen < 0 && comm_ignore_errno(errno))
213 >    if (retlen < 0 && comm_ignore_errno(errno) == true)
214      {
215        AddFlag(to, FLAGS_BLOCKED);
216  

Diff Legend

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