mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
MINOR: raw_sock: directly call fd_stop_send() and not conn_xprt_stop_send()
Now that we know that the connection layer is transparent for polling changes, we have no reason for hiding behind conn_xprt_stop_send() and can safely call fd_stop_send() on the FD once the buffer is empty.
This commit is contained in:
parent
19bc201c9f
commit
3110eb769b
1 changed files with 1 additions and 1 deletions
|
|
@ -382,7 +382,7 @@ static size_t raw_sock_from_buf(struct connection *conn, void *xprt_ctx, const s
|
|||
if (ret < try)
|
||||
break;
|
||||
if (!count)
|
||||
conn_xprt_stop_send(conn);
|
||||
fd_stop_send(conn->handle.fd);
|
||||
}
|
||||
else if (ret == 0 || errno == EAGAIN || errno == ENOTCONN || errno == EINPROGRESS) {
|
||||
/* nothing written, we need to poll for write first */
|
||||
|
|
|
|||
Loading…
Reference in a new issue