diff options
author | Robert Pösel <robyer@seznam.cz> | 2017-05-05 23:27:41 +0200 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2017-05-05 23:37:04 +0200 |
commit | f631072b6932918a4ee19ff64532cd4494f8e9e4 (patch) | |
tree | 91e83f942f05b473e7f3c8fa1b1389a90749aee7 | |
parent | 88ca07977eb507f37bcd87b6c3a324b1c23eeb9f (diff) |
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?).
-rw-r--r-- | src/mir_app/src/netlibhttp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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;
|