Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Convert a pile of obvious "yes/no" functions to return bool. | Tim Peters | 2002-04-04 | 1 | -2/+2 |
| | |||||
* | Replace use of apply() with extended call syntax. | Jeremy Hylton | 2002-04-04 | 1 | -2/+3 |
| | |||||
* | Remove duplicate "import os" | Neal Norwitz | 2002-03-14 | 1 | -1/+0 |
| | |||||
* | [Bug #517554] When a signal happens during the select call in | Andrew M. Kuchling | 2002-03-08 | 1 | -0/+1 |
| | | | | | | | | | asyncore.poll, the select fails with EINTR, which the code catches. However, the code fails to clear the r/w/e arrays (like poll3 does), which means it acts as if every descriptor had received all possible events. Bug report and patch by Cesar Eduardo Barros | ||||
* | Partial fix for problem in SF buf #487458 | Jeremy Hylton | 2001-12-14 | 1 | -1/+7 |
| | | | | | | | | | | | | | | | | | | Rev 1.20 introduced a call to getpeername() in the dispatcher constructor. This only works for a connected socket. Apparently earlier versions of the code worked with un-connected sockets, e.g. a listening socket. It's not clear that the code is supposed to accept these sockets, because it sets self.connected = 1 when passed a socket. But it's also not clear that it should be a fatal error to pass a listening socket. The solution, for now, is to put a try/except around the getpeername() call and continue if it fails. The self.addr attribute is used primarily (only?) to produce a nice repr for the object, so it hardly matters. If there is a real error on a connected socket, it's likely that subsequent calls will fail too. | ||||
* | /F observes that we need an else: in connect() | Jeremy Hylton | 2001-10-30 | 1 | -1/+2 |
| | |||||
* | Use connect_ex() instead of connect(). | Jeremy Hylton | 2001-10-29 | 1 | -12/+9 |
| | | | | Removes old XXX comment and possible source of long-delays. | ||||
* | Fix for SF bug 453099 -- select not defensive | Jeremy Hylton | 2001-10-29 | 1 | -5/+16 |
| | | | | | | | | | | And SF patch 473223 -- infinite getattr loop Wrap select() and poll() calls with try/except for EINTR. If EINTR is raised, treat as a response where no fd is ready. In dispatcher constructor, make sure self.socket is always initialized. | ||||
* | Reindent __repr__. | Martin v. Löwis | 2001-10-18 | 1 | -11/+11 |
| | |||||
* | Patch #470744: Simplify __repr__ error handling. | Martin v. Löwis | 2001-10-18 | 1 | -16/+4 |
| | |||||
* | Correct __repr__: include module name, avoid extra space for empty status, | Martin v. Löwis | 2001-10-12 | 1 | -3/+2 |
| | | | | use 0x format for id. Proposed by Cesar Eduardo Barros in patch #470680. | ||||
* | Patch #468647: Fix exception propagation in asyncore. | Martin v. Löwis | 2001-10-09 | 1 | -34/+38 |
| | |||||
* | Set .addr in a few more places (patch approved by Sam Rushing) | Andrew M. Kuchling | 2001-10-03 | 1 | -0/+2 |
| | |||||
* | Patch #461321: Support None as a timeout in poll2 and poll3. | Martin v. Löwis | 2001-09-19 | 1 | -4/+6 |
| | |||||
* | Patch #460554: Properly test for tuples. | Martin v. Löwis | 2001-09-11 | 1 | -1/+1 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2001-08-20 | 1 | -1/+1 |
| | |||||
* | Remove redundant assignment l = [] from poll3() -- copy-and-paste | Guido van Rossum | 2001-08-13 | 1 | -1/+0 |
| | | | | error. | ||||
* | Remove hard-coded NT constants that are already defined in errno on NT. | Jeremy Hylton | 2001-08-10 | 1 | -11/+5 |
| | | | | | Wrap some long lines. Remove unnecessary tuple unpack. | ||||
* | <socket>.getsockopt() and <socket>.setsockopt() can only raise socket.error, | Fred Drake | 2001-05-11 | 1 | -1/+1 |
| | | | | so only catch that specific exception. | ||||
* | Remove all remaining uses of the FCNTL module from the standard library. | Fred Drake | 2001-05-10 | 1 | -4/+3 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2001-05-02 | 1 | -1/+1 |
| | |||||
* | dispatcher.__repr__() was unprepared to handle the address for a Unix | Jeremy Hylton | 2001-04-20 | 1 | -11/+16 |
| | | | | | domain socket. Fix that and make the error message for failures a little more helpful by including the class name. | ||||
* | String method conversion. | Eric S. Raymond | 2001-02-09 | 1 | -9/+2 |
| | |||||
* | Updated version of asyncore.py from Sam Rushing: | Andrew M. Kuchling | 2001-01-24 | 1 | -4/+40 |
| | | | | | | Adds support for using select.poll() if it's available Move a 'map is None' test out of an else branch and into the right place | ||||
* | Whitespace standardization. | Tim Peters | 2001-01-14 | 1 | -11/+11 |
| | |||||
* | Untabify. When compiling in -tt mode, an inconsistent Tab use error | Fred Drake | 2000-09-11 | 1 | -408/+407 |
| | | | | was raised. This occurred during installation. | ||||
* | Match Sam Rushing's current version of asyncore.py and asynchat.py | Andrew M. Kuchling | 2000-09-08 | 1 | -77/+119 |
| | | | | (SF patch 101447, fixing PR#113704) | ||||
* | Fix a couple broken append() calls, spotted by Tim. | Guido van Rossum | 2000-02-25 | 1 | -4/+4 |
| | |||||
* | Actually, the previous batch's comment should have been different; | Guido van Rossum | 2000-02-04 | 1 | -0/+21 |
| | | | | | | | | | | *this* set of patches is Ka-Ping's final sweep: The attached patches update the standard library so that all modules have docstrings beginning with one-line summaries. A new docstring was added to formatter. The docstring for os.py was updated to mention nt, os2, ce in addition to posix, dos, mac. | ||||
* | Put Sam Rushing's original RCS ID string back, without dollars around it. | Guido van Rossum | 1999-09-14 | 1 | -1/+1 |
| | |||||
* | Sam's latest versions | Guido van Rossum | 1999-06-08 | 1 | -48/+48 |
| | |||||
* | A gift from Sam Rushing - modules asyncore and asynchat for the | Guido van Rossum | 1999-01-12 | 1 | -0/+453 |
standard Python library. (Async socket support.) |