in reply to GET a file without waiting for the result?
My current solution times out because the file takes to long to fetch.Uhm, if the file takes a long time to fetch, it's going to take a long time to fetch even if you do something else in the mean time. If you get a time out during the fetch, it's unlikely to not time out if you do it "asynchronously".
As for doing it "asynchronously", there are three classical solutions: use an event loop, fork a new process, spawn a new thread. I don't see how any of them will help with a timeout.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: GET a file without waiting for the result?
by DreamT (Pilgrim) on Sep 22, 2010 at 13:44 UTC | |
by Corion (Patriarch) on Sep 22, 2010 at 13:46 UTC | |
by DreamT (Pilgrim) on Sep 22, 2010 at 14:04 UTC | |
by Corion (Patriarch) on Sep 22, 2010 at 14:08 UTC | |
by DreamT (Pilgrim) on Sep 22, 2010 at 14:14 UTC | |
| |
by ikegami (Patriarch) on Sep 22, 2010 at 16:39 UTC |