On 14 Jan 2013, at 21:54, Camillo Bruni <camillobruni@gmail.com> wrote:
Issue with slice: http://code.google.com/p/pharo/issues/detail?id=7255
Yes, any DNS failure resulted in strange exception handling, IMO. This could indeed improve a couple more bogus situations.
thanks
The following should work after you load the slice:
ZnClient new timeout: 5; url: 'http://an.url.that.does.not.exists.ch/foo'; logToTranscript; downloadTo: FileSystem workingDirectory.
I just tried, seems like your slice improves your example, though I still get issues when changing the number of retries:
ZnClient new numberOfRetries: 1; "0 works..." timeout: 5; url: 'http://an.url.that.does.not.exists.ch/foo'; logToTranscript; downloadTo: FileSystem workingDirectory.
looks like it is still somewhere in the net resolver... strange
Well, I must admit that I don't really understand why/where it hangs ;-) I saw there was a problem with NameLookupFailure and I fixed what I thought was wrong. Retry happens when something goes wrong, i.e. some exception is thrown. It shouldn't make any difference what actually happened. But testing retry behaviour is hard, I will think about a way to do that in a unit test. Sven