Commit Graph

90 Commits

Author SHA1 Message Date
Andrew Svetlov
4bb142b1b7 Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
2012-12-18 21:27:37 +02:00
Trent Nelson
02f69f6965 Issue #16274: revert r79813:90a46f8943d0 changes to asyncore/test_asyncore.
The backport from 3.2 included a few things not appropriate for 2.7.
2012-10-18 07:44:43 -04:00
Trent Nelson
0622f6c14c Issue #16274: backport of 3.2's asyncore/test_asyncore to 2.7.
This fixes failing tests on Solaris 10.
2012-10-18 06:08:01 -04:00
Giampaolo Rodola'
96cb5d15c1 fix #10340: properly handle EINVAL on OSX and also avoid to call handle_connect() in case of a disconnetected socket which is not meant to connect. 2012-03-22 16:06:43 +01:00
Giampaolo Rodola'
3d3cf48e53 Fix issue #13694: asynchronous connect in asyncore.dispatcher does not set addr. 2012-03-20 16:46:57 +01:00
Charles-François Natali
2659140a5d Issue #12502: asyncore: fix polling loop with AF_UNIX sockets. 2011-07-14 19:49:02 +02:00
Giampaolo Rodolà
d65224f339 Merged revisions 88722 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88722 | giampaolo.rodola | 2011-03-03 14:57:47 +0100 (gio, 03 mar 2011) | 1 line

  Fix issue 11265: asyncore now correctly handles EPIPE, EBADF and EAGAIN errors on accept(), recv() and send().
........
2011-03-03 14:17:51 +00:00
Giampaolo Rodolà
19e9fefc66 Fix Issue 6706: return None on connect() in case of EWOULDBLOCK/ECONNABORTED error. 2010-11-01 15:07:14 +00:00
Giampaolo Rodolà
63308d7c08 Merged revisions 84284 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84284 | giampaolo.rodola | 2010-08-23 23:53:41 +0200 (lun, 23 ago 2010) | 1 line

  fix issue 658749: correctly interprets asyncore's windows errors on connect()
........
2010-08-23 21:58:47 +00:00
Giampaolo Rodolà
47617ab20d fix issue #2944: asyncore doesn't handle connection refused correctly (patch by Alexander Shigin) 2010-08-04 08:35:25 +00:00
Georg Brandl
7f0c3ffad5 Merged revisions 83201 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r83201 | georg.brandl | 2010-07-28 10:19:35 +0200 (Mi, 28 Jul 2010) | 1 line

  #9354: Provide getsockopt() in asyncore file_wrapper().  Patch by Lukas Langa.
........
2010-08-01 21:18:52 +00:00
Giampaolo Rodolà
e3a84e857f Fix issue #8573 (asyncore._strerror bug): fixed os.strerror typo; included NameError in the tuple of expected exception; added test case for asyncore._strerror. 2010-05-18 20:04:31 +00:00
Giampaolo Rodolà
215b6b392d provides a clearer warning message when cheap inheritance with the underlying socket object is used 2010-05-06 19:56:34 +00:00
Giampaolo Rodolà
f7454fa98d Fix asyncore issues 8573 and 8483: _strerror might throw ValueError; asyncore.__getattr__ cheap inheritance caused confusing error messages when accessing undefined class attributes; added an alias for __str__ which now is used as a fallback for __repr__ 2010-05-06 17:57:06 +00:00
Josiah Carlson
96b79c851a Fix for line wrap ugly. 2009-06-03 19:51:52 +00:00
Josiah Carlson
a810bc736c This fixes bug 5798 on OS X.
This should also fix disconnect behavior cross-platform.
2009-06-03 19:46:21 +00:00
Josiah Carlson
bb94d43dcd Fix for failing asyncore tests. 2009-04-01 01:28:11 +00:00
Josiah Carlson
aba27dd6d9 Made handle_expt_event() be called last, so that we don't accidentally read
after closing the socket.
2009-03-31 21:49:36 +00:00
Josiah Carlson
df90b02415 This resolves issue 1161031. Tests pass. 2009-03-31 19:32:34 +00:00
Josiah Carlson
a98d72d598 Fix for issue 4332 in trunk. 2008-11-19 18:26:12 +00:00
Josiah Carlson
b7a841ca40 undoing change that broke trunk. Need to find a better solution to this. 2008-09-07 04:37:10 +00:00
Josiah Carlson
1680b8c16c This fixes a small inconsistency between trunk and 3.0, closing bug 3764. 2008-09-07 03:53:58 +00:00
Brett Cannon
0d89407a0d Remove a dict.has_key() use to silence a warning when running under -3. 2008-08-02 03:32:13 +00:00
Georg Brandl
61d5c43011 Remove exception indexing in asyncore. 2008-07-20 07:29:58 +00:00
Josiah Carlson
b65b4c3a47 Fix for the AttributeError in test_asynchat. 2008-07-11 22:17:14 +00:00