ssl renew timeout while post keeps coming
authorChristian Schüldt <crilla@kth.se>
Thu, 9 Oct 2014 08:58:24 +0000 (16:58 +0800)
committerAndy Green <andy.green@linaro.org>
Thu, 9 Oct 2014 08:58:24 +0000 (16:58 +0800)
Signed-off-by: Christian Schüldt <crilla@kth.se>
lib/handshake.c

index f004ad0..856297d 100644 (file)
@@ -164,7 +164,10 @@ http_postbody:
                                                goto bail;
                                }
                                goto http_complete;
-                       }
+                       } else
+                               libwebsocket_set_timeout(wsi,
+                                       PENDING_TIMEOUT_HTTP_CONTENT,
+                                       AWAITING_TIMEOUT);
                }
                break;