| 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)) |
| 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 |
| 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 |
|
|