commit 07c0b81a230e1a6923379ab9ddb44a6aeab615cf
Author: Oswald Buddenhagen <[email protected]>
Date: Sat Nov 16 17:14:32 2019 +0100
don't timeout while uploading big messages
we set up the timeout already when starting to send commands, but so far
we did not reset it when succeeding to send out data. rectify that.
REFFAIL: [email protected]
src/socket.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/socket.c b/src/socket.c
index 34ff5d7..b8796cb 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -683,8 +683,6 @@ do_read( conn_t *sock, char *buf, uint len )
int n;
assert( sock->fd >= 0 );
- if (pending_wakeup( &sock->fd_timeout ))
- conf_wakeup( &sock->fd_timeout, sock->conf->timeout );
#ifdef HAVE_LIBSSL
if (sock->ssl) {
if ((n = ssl_return( "read from", sock, SSL_read( sock->ssl,
buf, (int)len ) )) <= 0)
@@ -1062,6 +1060,9 @@ socket_fd_cb( int events, void *aux )
if (events & POLLOUT)
conf_notifier( &conn->notify, POLLIN, 0 );
+ if (pending_wakeup( &conn->fd_timeout ))
+ conf_wakeup( &conn->fd_timeout, conn->conf->timeout );
+
#ifdef HAVE_LIBSSL
if (conn->state == SCK_STARTTLS) {
start_tls_p2( conn );
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel