Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
njwangwei opened this issue Mar 17, 2017 · 2 comments
Open

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

njwangwei opened this issue Mar 17, 2017 · 2 comments

Comments

@njwangwei
Copy link

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

@ghost
Copy link

ghost commented Mar 1, 2018

Lib xNET error when response GZStream type of gzip. I have an error same

@ghost
Copy link

ghost commented Mar 1, 2018

var gzip = new GZStream(bytes, Method: Decompress, true)
gzip.Close();
return gzip;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant