Neal Norwitz
4ce69a5b06
No need to import exceptions, they are builtins
2005-09-01 00:45:28 +00:00
Andrew M. Kuchling
e47c381c62
[Bug #1011606 ] Only check file descriptors for exceptional conditions if the fd is readable or writable
2004-09-01 14:04:51 +00:00
Andrew M. Kuchling
9d499f2f96
Back out patch #982681
2004-08-13 20:06:57 +00:00
Tim Peters
182b5aca27
Whitespace normalization, via reindent.py.
2004-07-18 06:16:08 +00:00
Andrew M. Kuchling
5336f8caa4
[Patch #982681 ] Apply this patch correctly; makes set_reuse_addr() work on Windows
2004-07-15 16:17:07 +00:00
Andrew M. Kuchling
0fff6c8651
In poll(), check connections for exceptional conditions
2004-07-10 17:36:11 +00:00
Andrew M. Kuchling
dfa74b97ec
Return value from .close(); move .set_file up
2004-07-10 15:51:19 +00:00
Tim Peters
4e0e1b6a54
Whitespace normalization.
2004-07-07 20:54:48 +00:00
Andrew M. Kuchling
6fe93cdeb3
For readable() objects, the previous value of 'flags' was ignored.
...
Rearrange code for writable() case to make the parallel logic clearer
2004-07-07 12:23:53 +00:00
Michael W. Hudson
d5cf143482
Check in the updated version of patch #957240 , which doesn't rely
...
on the marshalling characteristics of infinities.
2004-06-30 09:02:33 +00:00
Martin v. Löwis
ad21945d03
Back out #957240 .
2004-06-14 04:58:42 +00:00
Martin v. Löwis
eac324b90b
Patch #957240 : Add count parameter to asyncore.loop.
2004-06-03 09:18:35 +00:00
Andrew M. Kuchling
67867eaf8c
[Part of patch #909005 ] Added map parameter for file_dispatcher and dispatcher_with_send
2004-03-21 20:03:18 +00:00
Andrew M. Kuchling
174bdbc999
[Part of patch #909005 ] Repeating exception changed from 'raise socket.error, why' to just raise. Make use of connect_ex() raise socket.error with 2-tuple instead of just error code
2004-03-21 19:58:28 +00:00
Andrew M. Kuchling
419af88b34
[Part of patch #909005 ] Remove Mac code for writable
2004-03-21 19:52:01 +00:00
Andrew M. Kuchling
0ebbbe30f1
[Part of patch #909005 ] Set initial poll flags
2004-03-21 19:50:09 +00:00
Andrew M. Kuchling
68522b1895
[Part of patch #909005 ] Use True/False
2004-03-21 19:46:16 +00:00
Andrew M. Kuchling
9303777f22
[Part of patch #909005 ] Handle POLLPRI flag, and various errors cases. Fixes bug #887279
2004-03-21 19:26:00 +00:00
Raymond Hettinger
3dc3484ac8
SF bug #892492 : Multiple close() for asyncore.dispatcher.
...
(Contributed by Alexey Klimkin.)
Don't keep the file descriptor after the channel is deleted.
2004-02-08 11:32:50 +00:00
Andrew M. Kuchling
6c2871e707
[Part of patch #648322 ] Delete the poll2() function, which uses a 'poll' extension module that was once part of Medusa. Contributed by Kjetil Jacobsen
2003-10-22 14:38:27 +00:00
Andrew M. Kuchling
f9ca409292
[Bug #758241 ] When you use asyncore with a non-default map, methods
...
of the dispatcher object break. e.g. if you close() the object, it
tries to remove itself from the default map, not from the map the
dispatcher was created with.
The patch, from Stephane Ninin, records the map as an attribute of
the dispatcher instance.
2.3 bugfix candidate.
2003-10-22 13:48:27 +00:00
Walter Dörwald
f0dfc7ac5c
Fix a bunch of typos in documentation, docstrings and comments.
...
(From SF patch #810751 )
2003-10-20 14:01:56 +00:00
Andrew M. Kuchling
c07fb2fc5b
Fix comment typo
2003-02-14 01:13:01 +00:00
Guido van Rossum
9a40c1c299
Add XXX about Winsock error values
2002-12-26 18:22:54 +00:00
Guido van Rossum
e94d8fab56
Fix an old bug in poll(). When a signal is handled while we're
...
blocked in select(), this will raise select.error with errno set to
EINTR. The except clauses correctly ignores this error, but the rest
of the logic will then call read() for all objects in select's *input*
list of read file descriptors. Then when an object's read_handler()
is naive, it will call recv() on its socket, which will raise an
IOError, and then asyncore decides to close the socket. To fix this,
we simply return in this case.
Backport candidate.
2002-11-05 18:41:20 +00:00