mirror of
https://github.com/zhaojh329/rtty.git
synced 2026-02-27 09:53:17 +08:00
fix: free http con when ssl_read return 0.
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
+2
-1
@@ -126,7 +126,8 @@ static void on_net_read(struct ev_loop *loop, struct ev_io *w, int revents)
|
||||
}
|
||||
if (ret == SSL_WANT_READ || ret == SSL_WANT_WRITE)
|
||||
return;
|
||||
|
||||
if (ret == 0)
|
||||
goto done;
|
||||
} else {
|
||||
#endif
|
||||
ret = read(w->fd, buf, sizeof(buf));
|
||||
|
||||
Reference in New Issue
Block a user