From: Andy Green Date: Mon, 9 Apr 2012 07:23:47 +0000 (+0800) Subject: fix onopen browser context patch X-Git-Tag: 1.2~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b5af9af15c496a32921974c538c4f0ca90ffda4;p=profile%2Fivi%2Flibwebsockets.git fix onopen browser context patch Signed-off-by: Andy Green --- diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c index 1feb728..b05f79e 100644 --- a/lib/libwebsockets.c +++ b/lib/libwebsockets.c @@ -1887,6 +1887,7 @@ libwebsocket_service_fd(struct libwebsocket_context *context, * definitively ready from browser pov. */ + len = 1; while (wsi->parser_state != WSI_PARSING_COMPLETE && len > 0) { #ifdef LWS_OPENSSL_SUPPORT if (wsi->use_ssl)