Subject: | [PATCH] Make connect and write async as well |
Hi,
I noticed that in HTTP::Async, connect and write are
blocking operations. Since I need to handle gracefully
network problems and big POST to slow servers, I performed
some changes to HTTP::Async.
I believe most of it could be done in a subclass if needed,
but since it seems a useful functionality, I am submitting here
as a patch.
Apart from tests for the functionality, it adds:
- A Net::HTTP::NB subclass to handler asynchronous connect and
buffered write
- adds a second IO::Select object to HTTP::Async to handle writes,
plus the necessary code to handle buffered writes
Let me know what you think.
Regards,
Mattia
Subject: | darcs.diff |
Message body is not shown because it is too large.