Skip to content

process gzip result error when run at mono/linux #52

@njwangwei

Description

@njwangwei

I have added some debug infor;
at the same time,run at windows can't received gzip result.
mono xnettest.exe "http://www.cnblogs.com"
url:http://www.cnblogs.com
now do Request
now get connection
get connection result:True
now send request
header string is:
Host: www.cnblogs.com
Connection: keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0

now ReceiveResponseHeaders
startingLine:HTTP/1.1 200 OK

response header:Date: Fri, 17 Mar 2017 00:58:22 GMT

response header:Content-Type: text/html; charset=utf-8

response header:Transfer-Encoding: chunked

response header:Connection: keep-alive

response header:Vary: Accept-Encoding

response header:Cache-Control: public, max-age=15

response header:Expires: Fri, 17 Mar 2017 00:58:37 GMT

response header:Last-Modified: Fri, 17 Mar 2017 00:58:07 GMT

response header:X-UA-Compatible: IE=10

response header:Content-Encoding: gzip

response header:

now ReceiveResponseHeaders :340
now CheckStatusCode:OK
now Check AllowAutoRedirect:True
1
2
now return response
now tostring begin
now check MessageBodyLoaded
now create MemoryStream
now GetMessageBodySource
GetMessageBodySourceZip
ReceiveMessageBodyChunkedZip
GetZipStream
GZipStream
ReceiveMessageBodyChunkedZip TotalBytesRead:4838,have read bytes:0,blocklength:4838
ReceiveMessageBodyChunkedZip TotalBytesRead:0,have read bytes:0,blocklength:3675
ReceiveMessageBodyChunkedZip waitdata
waitdata begin
waitdata delay:60000

Unhandled Exception:
xNet.HttpException: Вышло время ожидания данных от HTTP-сервера 'www.cnblogs.com'.
at xNet.HttpResponse.WaitData () [0x00063] in :0
at xNet.HttpResponse+d__102.MoveNext () [0x00262] in :0
at xNet.HttpResponse.ToString () [0x000a8] in :0
[ERROR] FATAL UNHANDLED EXCEPTION: xNet.HttpException: Вышло время ожидания данных от HTTP-сервера 'www.cnblogs.com'.
at xNet.HttpResponse.WaitData () [0x00063] in :0
at xNet.HttpResponse+d__102.MoveNext () [0x00262] in :0
at xNet.HttpResponse.ToString () [0x000a8] in :0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions