fix: free http con when ssl_read return 0.

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
Jianhui Zhao
2024-11-21 16:50:46 +08:00
parent edd50a6fe2
commit ca5207bb4c
+2 -1
View File
@@ -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));