Message45459
| Author |
klimkin |
| Recipients |
| Date |
2005年02月26日.21:39:44 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
Logged In: YES
user_id=410460
Minor improvements:
* Added handle_close_event(): calls handle_close(), then
closes channel. No need to write self.close() in each handle_close
().
* Improved exception handling. KeyboardInterrupt is not
blocked. For python exception handle_error_event() is called,
which checks for KeyboardInterrupt and closes socket, if
handle_error didn't.
Bugs:
* Calling connect() could raise exception and doesn't hit
handle_error(). Now if there was an exception,
handle_error_event() is called.
Features:
* set_timeout(): Sets timeout for dispatcher object, if there was
no io for the object, raises ETIMEDOUT, which handled by
handle_error_event().
* Fixed issue with Windows - too many descriptors in select().
The list of sockets shuffled and only first asyncore.max_channels
used in select().
* Added set_prio(): Sets priority for dispatcher. After shuffle
the list of sockets sorted by priority.
You may also check asynhttplib - asynchronous version of httplib.
|
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 15:32:37 | admin | link | issue909005 messages |
| 2007年08月23日 15:32:37 | admin | create |
|