mirror of
https://repo.or.cz/socat.git
synced 2025-07-15 07:33:25 +00:00
writefull() respects total inactivity timeout
This commit is contained in:
parent
1878ae93fd
commit
1154e69d3e
12 changed files with 31 additions and 15 deletions
|
@ -136,7 +136,7 @@ static int _xioopen_socks5_handshake(struct single *sfd, int level)
|
|||
}
|
||||
#endif
|
||||
|
||||
if (writefull(sfd->fd, client_hello, client_hello_size) < 0) {
|
||||
if (writefull(sfd->fd, client_hello, client_hello_size, NULL) < 0) {
|
||||
Msg4(level, "write(%d, %p, %d): %s",
|
||||
sfd->fd, client_hello, client_hello_size,
|
||||
strerror(errno));
|
||||
|
@ -426,7 +426,7 @@ static int _xioopen_socks5_request(
|
|||
}
|
||||
#endif
|
||||
|
||||
if (writefull(sfd->fd, req, bytes) < 0) {
|
||||
if (writefull(sfd->fd, req, bytes, NULL) < 0) {
|
||||
Msg4(level, "write(%d, %p, %d): %s",
|
||||
sfd->fd, req, bytes, strerror(errno));
|
||||
if (Close(sfd->fd) < 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue