On 20 Mar 2013, at 17:19, Camillo Bruni <camillobruni@gmail.com> wrote:
On 2013-03-20, at 17:16, Sven Van Caekenberghe <sven@stfx.eu> wrote:
Hi Andrei,
On 20 Mar 2013, at 17:01, Andrei Vasile Chis <chisvasileandrei@gmail.com> wrote:
Hi,
Lately I started to get ConnectionClosed errors when loading packages from Smalltalkhub by using Monticello. It's very likely to just be a problem with my environment, as I'm connecting through a university server, but I got stuck debugging it.
Just to see if I can download packages normally I tried two things: ZnClient new systemPolicy; url: 'http://www.smalltalkhub.com/mc/AndreiChis/AnnouncerCentricDebugger/main/ACD-...'; beOneShot; get.
ZnClient new systemPolicy; url: 'http://www.smalltalkhub.com/mc/AndreiChis/AnnouncerCentricDebugger/main/ACD-...'; setAcceptEncodingGzip; beOneShot; get.
In the first case it works perfectly. However when I add 'setAcceptEncodingGzip' every time I get: [ConnectionClosed signal: 'Connection closed while waiting for data.'] in Socket>>waitForDataFor: but if I proceed from this error I get the right content. Monticello uses "setAcceptEncodingGzip" so I get the above error. If I remove it, it works ok.
I've tried this with the Pharo2.0-one-click image on Mac OS (all the compression tests pass). Doing a request using curl with "Accept-Encoding: gzip,deflate" to the same url works ok.
Am I missing something obvious?
Cheers, Andrei
The problem that you mention (problems accessing monticello with gzip compression through some proxies) is a known issue:
https://pharo.fogbugz.com/f/cases/6923 https://code.google.com/p/pharo/issues/detail?id=6986
The problem is, that to debug this, one (or I) has (have) to be behind your proxy. The other solution is that you help us.
Add #logToTranscript to your Smalltalk code above and open the Transcript to see the HTTP wire protocol. Compare that with curl -v
Somewhere there has to be some difference that matters...
I tried to get there while I was in argentina :) but I didn't manage :/
Well, go back then ! I never gave you permission to come as long as that bug was not fixed. Sven