From f631072b6932918a4ee19ff64532cd4494f8e9e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Fri, 5 May 2017 23:27:41 +0200 Subject: Revert "stupid bug with the empty HTTP packets processing in netlib" (commit b0b0b090cbec03d92e803612d2eced7d85ebf486) (fixes #807) I don't understand reason for the original commit, but it is obviously wrong as it makes often receiving data failures (perhaps because timeout of persistent connection?). --- src/mir_app/src/netlibhttp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mir_app/src/netlibhttp.cpp b/src/mir_app/src/netlibhttp.cpp index 98e0d8a3ce..243f92e1a3 100644 --- a/src/mir_app/src/netlibhttp.cpp +++ b/src/mir_app/src/netlibhttp.cpp @@ -1001,7 +1001,7 @@ static int NetlibHttpRecvChunkHeader(NetlibConnection *nlc, bool first, DWORD fl NETLIBHTTPREQUEST* NetlibHttpRecv(NetlibConnection *nlc, DWORD hflags, DWORD dflags, bool isConnect) { - int dataLen = 0, i, chunkhdr = 0; + int dataLen = -1, i, chunkhdr = 0; bool chunked = false; int cenc = 0, cenctype = 0, close = 0; -- cgit v1.2.3