Hi there,

I've started using Zinc in more projects and it's doing well.

Except for one thing :)

Using the http client, I've found exceptions happening when receiving the 
answer after the request.

I remember one related to someone sending #contents and failing due to entity 
being nil instead of the expected something stream related (see 
ZnClient>>contents).

I also found that not using #beOneShot helps.

If I make #beOneShot a no-op by commenting "self optionAt: #oneShot put: true" 
everything works as expected.

That makes #beOneShot suspicious about making the client to close the 
connection before getting the contents of the data answered in the stream. It 
seems to be closing the connection without reading the answer the server sent.

I don't know of more cases but this of course *had* to happen when using 
Merchant* to talk to my gateway to process credit card payments so you can have 
an idea how frustrating this is.

With the workaround things are okay so far but I'm a little worried about this 
bug because it seems that beOneShot is the default for everything http client 
in Pharo and it is going to be needed a lot.

Let me know how I can be of further help to get this fixed

sebastian

o/

*Merchant is available in squeak source and yeah, I know, I should move it to 
ss3 but maybe I'm waiting for smalltalkhub




Reply via email to