Hi Andrei, I can see that you are using a transparent proxy based on Squid. Indeed, the response is HTTP 1.0 which logically implies a connection close. One difference that I see is related to the content-length in the response. There is none, which is OK when there is a connection close, but it shows in the Smalltalk trace, which is weird. And for the same file, /mc/AndreiChis/AnnouncerCentricDebugger/main/ACD-Tests-AndreiChis.1.mcz, Smalltalk reports a length of 3451B (probably after your proceeded from the exception), while curl reports size_download=3307, when I try from here, I also get 3451 bytes, Although unibe.ch is closer than Argentina, I am not on your network. You could try to put a breakpoint in ZnEntityReader>>#readEntity and see a bit what happens. We have to find out why readFrom: readStream usingType: contentType andLength: nil does not happen. Sven On 20 Mar 2013, at 17:48, Andrei Vasile Chis <chisvasileandrei@gmail.com> wrote:
Hi Sven,
Bellow is the output of I got from #logToTranscript and by running curl with -v with http1.1 and with http1.0. Just from the zinc output I could figure out if the get request is http1.1 or http1.0
Let me know if you need any other data.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Output from Smalltalk:
2013-03-20 17:24:54 660707 I Wrote a ZnRequest(GET /mc/AndreiChis/AnnouncerCentricDebugger/main/ACD-Tests-AndreiChis.1.mcz) 2013-03-20 17:24:54 660707 D Sent headers User-Agent: Zinc HTTP Components 1.0 Accept-Encoding: gzip Connection: close Host: www.smalltalkhub.com Accept: */*
2013-03-20 17:24:54 660707 D ConnectionClosed: Connection closed while waiting for data. retrying 2013-03-20 17:24:55 660707 I Wrote a ZnRequest(GET /mc/AndreiChis/AnnouncerCentricDebugger/main/ACD-Tests-AndreiChis.1.mcz) 2013-03-20 17:24:55 660707 D Sent headers User-Agent: Zinc HTTP Components 1.0 Accept-Encoding: gzip Connection: close Host: www.smalltalkhub.com Accept: */*
2013-03-20 17:24:55 660707 D ConnectionClosed: Connection closed while waiting for data. retrying 2013-03-20 17:24:56 660707 I Wrote a ZnRequest(GET /mc/AndreiChis/AnnouncerCentricDebugger/main/ACD-Tests-AndreiChis.1.mcz) 2013-03-20 17:24:56 660707 D Sent headers User-Agent: Zinc HTTP Components 1.0 Accept-Encoding: gzip Connection: close Host: www.smalltalkhub.com Accept: */*
2013-03-20 17:24:58 660707 I Read a ZnResponse(200 OK application/x-monticello 3451B) 2013-03-20 17:24:58 660707 D Received headers Content-Encoding: gzip Content-Length: 3451 Server: KomHttpServer/7.1.3 (unix) Connection: close Content-Type: application/x-monticello X-Cache: HIT from proxy.unibe.ch Date: Wed, 20 Mar 2013 16:24:54 GMT Via: 1.0 bifor.unibe.ch (squid) Age: 3 Vary: Accept-Encoding
2013-03-20 17:24:58 660707 T GET /mc/AndreiChis/AnnouncerCentricDebugger/main/ACD-Tests-AndreiChis.1.mcz 200 3451B 4090ms
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ curl with http1.1 command: curl http://www.smalltalkhub.com/mc/AndreiChis/AnnouncerCentricDebugger/main/ACD-... -H "Accept-Encoding: gzip" --write-out "size_download=%{size_download}\n" --output /dev/null -v output:
* About to connect() to www.smalltalkhub.com port 80 (#0) * Trying 88.190.31.116... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* connected * Connected to www.smalltalkhub.com (88.190.31.116) port 80 (#0)
GET /mc/AndreiChis/AnnouncerCentricDebugger/main/ACD-Tests-AndreiChis.1.mcz HTTP/1.1 User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5 Host: www.smalltalkhub.com Accept: */* Accept-Encoding: gzip
* HTTP 1.0, assume close after body < HTTP/1.0 200 OK < Date: Wed, 20 Mar 2013 16:41:16 GMT < Server: KomHttpServer/7.1.3 (unix) < Content-Type: application/x-monticello < Vary: Accept-Encoding < Content-Encoding: gzip < X-Cache: MISS from proxy.unibe.ch < Via: 1.0 bifor.unibe.ch (squid) < Connection: close < { [data not shown] 100 3307 0 3307 0 0 17741 0 --:--:-- --:--:-- --:--:-- 17972 * Closing connection #0 size_download=3307
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ curl with http1.0 command: curl http://www.smalltalkhub.com/mc/AndreiChis/AnnouncerCentricDebugger/main/ACD-... --http1.0 -H "Accept-Encoding: gzip" --write-out "size_download=%{size_download}\n" --output /dev/null -v output:
* About to connect() to www.smalltalkhub.com port 80 (#0) * Trying 88.190.31.116... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* connected * Connected to www.smalltalkhub.com (88.190.31.116) port 80 (#0)
GET /mc/AndreiChis/AnnouncerCentricDebugger/main/ACD-Tests-AndreiChis.1.mcz HTTP/1.0 User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5 Host: www.smalltalkhub.com Accept: */* Accept-Encoding: gzip
* HTTP 1.0, assume close after body < HTTP/1.0 200 OK < Date: Wed, 20 Mar 2013 16:41:16 GMT < Server: KomHttpServer/7.1.3 (unix) < Content-Type: application/x-monticello < Vary: Accept-Encoding < Content-Encoding: gzip < Age: 34 < X-Cache: HIT from proxy.unibe.ch < Via: 1.0 bifor.unibe.ch (squid) < Connection: close < { [data not shown] 100 3307 0 3307 0 0 1040k 0 --:--:-- --:--:-- --:--:-- 3229k * Closing connection #0 size_download=3307