diff --git a/src/buffer b/src/buffer index f89f64d..99adb71 160000 --- a/src/buffer +++ b/src/buffer @@ -1 +1 @@ -Subproject commit f89f64d0a194136721ad2b4bf1811fe48533cdf5 +Subproject commit 99adb71b0bd8cb2c09fd41e52334a9bcf8831327 diff --git a/src/rtty.c b/src/rtty.c index 0a8ac9b..1c79c53 100644 --- a/src/rtty.c +++ b/src/rtty.c @@ -348,10 +348,10 @@ static void on_net_read(struct ev_loop *loop, struct ev_io *w, int revents) #if RTTY_SSL_SUPPORT if (rtty->ssl) - ret = buffer_put_fd_ex(&rtty->rb, w->fd, -1, &eof, rtty_ssl_read, rtty->ssl); + ret = buffer_put_fd_ex(&rtty->rb, w->fd, 4096, &eof, rtty_ssl_read, rtty->ssl); else #endif - ret = buffer_put_fd(&rtty->rb, w->fd, -1, &eof); + ret = buffer_put_fd(&rtty->rb, w->fd, 4096, &eof); if (ret < 0) { log_err("socket read error: %s\n", strerror (errno)); return;