in reply to (crazyinsomniac) Re^2: How do I retrieve a piece of a file? (use a callback)
in thread How do I retrieve a piece of a file?

Yeah, but the person said that trying it that way didn't work as expected. I was giving her/him another way of doing it.

Correct me if I'm wrong, but in your example if the remote site is (for instance) heavily loaded and sends you a chunk of (for example) 160 bytes, your callback will be called, die, and close the connection prematurely.

later: I suppose what I am talking about is this in another form.

--
g r i n d e r
  • Comment on Re: (crazyinsomniac) Re^2: How do I retrieve a piece of a file? (use a callback)