summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/net/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/net.c b/src/net/net.c
index d0bf233..f4a66d6 100755
--- a/src/net/net.c
+++ b/src/net/net.c
@@ -262,7 +262,7 @@ static inline int worker_read(http_worker *hw, str *buf){
int receive_request(http_worker *hw, str *request){
// for some reason SSL_has_pending can return 0 but we can still read data
struct pollfd pfd[1] = { {.fd = hw->csocket, .events = POLLIN } };
- while((hw->secure && SSL_has_pending(hw->ssl)) || poll(pfd, 1, 0)){
+ while((hw->secure && SSL_has_pending(hw->ssl)) || poll(pfd, 1, 100)){
int new = worker_read(hw, request);
if(new < 0 || (hw->secure && new == 0)){
int error = new;