Home » U++ Library support » U++ MT-multithreading and servers » [FIXED]HttpRequest hangs when Chunked response, without trailer, and KeepAlive is set. (patch & TC)
Re: [BUG]HttpRequest hangs when Chunked response, without trailer, and KeepAlive is set. (patch & TC) [message #46335 is a reply to message #46332] |
Fri, 22 April 2016 17:08   |
omari
Messages: 276 Registered: March 2010
|
Experienced Member |
|
|
Thanks Mirek, it work well for this scenario.
there are two other small bugs that appears with KeepAlive:
1 - Finish() calls Close() (at line 833), but in keep_alive mode, it should not
2 - there is a blocking, when response has Content-Length = 0, for example:
HTTP/1.0 200 OK
Date: Fri, 31 Dec 1999 23:59:59 GMT
Server: Apache/0.8.4
Content-Type: text/html
Content-Length: 0
Expires: Sat, 01 Jan 2000 00:59:59 GMT
Last-modified: Fri, 09 Aug 1996 14:21:40 GMT
a possible solution (tested) is in ReadingBody()
replace:
if(count > 0)
n = (int)min((int64)n, count);
by
if(count == 0)
return false;
n = (int)min((int64)n, count);
regards
omari.
|
|
|
 |
|
[FIXED]HttpRequest hangs when Chunked response, without trailer, and KeepAlive is set. (patch & TC)
By: omari on Fri, 08 April 2016 19:44
|
 |
|
Re: [BUG]HttpRequest hangs when Chunked response, without trailer, and KeepAlive is set. (patch & TC)
By: mirek on Sun, 17 April 2016 08:58
|
 |
|
Re: [BUG]HttpRequest hangs when Chunked response, without trailer, and KeepAlive is set. (patch & TC)
By: omari on Sun, 17 April 2016 11:37
|
 |
|
Re: [BUG]HttpRequest hangs when Chunked response, without trailer, and KeepAlive is set. (patch & TC)
By: mirek on Sun, 17 April 2016 14:43
|
 |
|
Re: [BUG]HttpRequest hangs when Chunked response, without trailer, and KeepAlive is set. (patch & TC)
By: omari on Sun, 17 April 2016 22:10
|
 |
|
Re: [BUG]HttpRequest hangs when Chunked response, without trailer, and KeepAlive is set. (patch & TC)
By: mirek on Mon, 18 April 2016 17:44
|
 |
|
Re: [BUG]HttpRequest hangs when Chunked response, without trailer, and KeepAlive is set. (patch & TC)
By: omari on Mon, 18 April 2016 19:02
|
 |
|
Re: [BUG]HttpRequest hangs when Chunked response, without trailer, and KeepAlive is set. (patch & TC)
By: mirek on Tue, 19 April 2016 11:01
|
 |
|
Re: [BUG]HttpRequest hangs when Chunked response, without trailer, and KeepAlive is set. (patch & TC)
By: omari on Tue, 19 April 2016 11:36
|
 |
|
Re: [BUG]HttpRequest hangs when Chunked response, without trailer, and KeepAlive is set. (patch & TC)
By: mirek on Fri, 22 April 2016 09:33
|
 |
|
Re: [BUG]HttpRequest hangs when Chunked response, without trailer, and KeepAlive is set. (patch & TC)
By: omari on Fri, 22 April 2016 17:08
|
 |
|
Re: [BUG]HttpRequest hangs when Chunked response, without trailer, and KeepAlive is set. (patch & TC)
By: mirek on Mon, 25 April 2016 13:52
|
 |
|
Re: [BUG]HttpRequest hangs when Chunked response, without trailer, and KeepAlive is set. (patch & TC)
By: mirek on Mon, 25 April 2016 13:57
|
 |
|
Re: [BUG]HttpRequest hangs when Chunked response, without trailer, and KeepAlive is set. (patch & TC)
By: omari on Tue, 19 April 2016 11:42
|
Goto Forum:
Current Time: Sat May 10 03:03:39 CEST 2025
Total time taken to generate the page: 0.02862 seconds
|