- 11 Mar, 2005 1 kayıt (commit)
-
-
Brett Cannon yazdı
socket.gethostname() in the check for a valid return. Also clarified docs (official and docstring) that the value from gethostname() is returned if gethostbyaddr() doesn't do the job.
-
- 09 Agu, 2004 1 kayıt (commit)
-
-
Dave Cole yazdı
-
- 31 May, 2004 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 28 Mar, 2004 1 kayıt (commit)
-
-
Tim Peters yazdı
The .closed property always returned the wrong result. Bugfix candidate!
-
- 14 Haz, 2003 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
Fixes #754447.
-
- 29 May, 2003 1 kayıt (commit)
-
-
Guido van Rossum yazdı
can happen if __init__ doesn't complete. Fix it by adding a try/except to __del__.
-
- 10 May, 2003 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
riscospath.extsep, and use os.extsep throughout.
-
- 29 Nis, 2003 2 kayıt (commit)
-
-
Fred Drake yazdı
-
Skip Montanaro yazdı
throughput-sensitive methods are grabbed from the underlying _socket.socket object. Closes SF patch 729293.
-
- 25 Nis, 2003 1 kayıt (commit)
-
-
Guido van Rossum yazdı
- The socket module now provides the functions inet_pton and inet_ntop for converting between string and packed representation of IP addresses. See SF patch #658327. This still needs a bit of work in the doc area, because it is not available on all platforms (especially not on Windows).
-
- 30 Mar, 2003 1 kayıt (commit)
-
-
Skip Montanaro yazdı
platforms which have dup(2). The makefile() method is built directly on top of the socket without duplicating the file descriptor, allowing timeouts to work properly. Includes a new test case (urllibnet) which requires the network resource. Closes bug 707074.
-
- 22 Agu, 2002 1 kayıt (commit)
-
-
Guido van Rossum yazdı
598097)
-
- 08 Agu, 2002 8 kayıt (commit)
-
-
Tim Peters yazdı
-
Guido van Rossum yazdı
to delete the reference to self._sock, and the regular destructor will do that just fine. This made some hacks in close() unnecessary. The _fileobject class still has a __del__ method, because it must flush.
-
Guido van Rossum yazdı
This is important IMO because httplib reads the headers this way.
-
Guido van Rossum yazdı
observation that _rbuf could never have more than one string in it. So make _rbuf a string. The code branches for size<0 and size>=0 are completely separate now, both in read() and in readline(). I checked for tabs this time. :-)
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
to being a new-style class, to be more similar to the socket class in the _socket module; it is now the same as the _socketobject class. Added __slots__. Added docstrings, copied from the real socket class where possible. The _fileobject class is now also a new-style class with __slots__ (though without docstrings). The mode, name, softspace, bufsize and closed attributes are properly supported (closed as a property; name as a class attributes; the softspace, mode and bufsize as slots).
-
Guido van Rossum yazdı
correctly (the test at least succeed, but they don't test everything yet). Also fix a performance problem in read(-1): in unbuffered mode, this would read 1 byte at a time. Since we're reading until EOF, that doesn't make sense. Use the default buffer size if _rbufsize is <= 1.
-
- 07 Agu, 2002 2 kayıt (commit)
-
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
and this broke a Zope "pipelining" test which read multiple responses from the same connection (this attaches a new file object to the socket for each response). Added a test for this too. (I want to do some code cleanup too, but I thought I'd first fix the problem with as little code as possible, and add a unit test for this case. So that's what this checkin is about.)
-
- 31 Tem, 2002 2 kayıt (commit)
-
-
Tim Peters yazdı
arguments correctly too.
-
Tim Peters yazdı
+ Don't change the arglist requirements. + Give the wrapper the same docstring as _socket.socket (it didn't have any docstring).
-
- 18 Tem, 2002 1 kayıt (commit)
-
-
Guido van Rossum yazdı
getdefaulttimeout() functions to the socket and _socket modules, and appropriate tests.
-
- 13 Haz, 2002 1 kayıt (commit)
-
-
Neal Norwitz yazdı
-
- 06 Haz, 2002 1 kayıt (commit)
-
-
Guido van Rossum yazdı
I've made considerable changes to Michael's code, specifically to use the select() system call directly and to store the timeout as a C double instead of a Python object; internally, -1.0 (or anything negative) represents the None from the API. I'm not 100% sure that all corner cases are covered correctly, so please keep an eye on this. Next I'm going to try it Windows before Tim complains. No way is this a bugfix candidate. :-)
-
- 17 Şub, 2002 1 kayıt (commit)
-
-
Tim Peters yazdı
SSL support. test_socket.py passes again on Windows. Added an XXX about adding _ssl exports to the __all__ list (it doesn't appear to be doing anything about that now, but since I don't have SSL on this box I can't really tell).
-
- 16 Şub, 2002 2 kayıt (commit)
-
-
Martin v. Löwis yazdı
Replaces calls to socket.send() (which isn't guaranteed to send all data) with the new socket.sendall() method.
-
Marc-André Lemburg yazdı
helper module _ssl. The support for the RAND_* APIs in _ssl is now only enabled for OpenSSL 0.9.5 and up since they were added in that release. Note that socketmodule.* should really be renamed to _socket.* -- unfortunately, this seems to lose the CVS history of the file. Please review and test... I was only able to test the header file chaos in socketmodule.c/h on Linux. The test run through fine and compiles don't give errors or warnings. WARNING: This patch does *not* include changes to the various non-Unix build process files.
-
- 18 Ara, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
This way, when a socket object is deleted after the socket module has already been zapped by module shutdown, we don't get annoying warnings about exceptions in __del__ methods.
-
- 29 Eki, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 24 Eki, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 18 Agu, 2001 2 kayıt (commit)
-
-
Guido van Rossum yazdı
class, I came up with an even simpler solution: raise the error in __getattr__().
-
Guido van Rossum yazdı
This breaks software that excepts a socket.error but not an AttributeError.
-
- 29 Mar, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
-
- 22 Mar, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
# 409287, ssl fix when using _socketobject, by Robin Dunn. I took the opportunity to improve the way it deals with reload(socket) for the socket function as well.
-
- 18 Mar, 2001 1 kayıt (commit)
-
-
Skip Montanaro yazdı
closes bug #406642
-
- 02 Mar, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 15 Şub, 2001 1 kayıt (commit)
-
-
Skip Montanaro yazdı
also modified check_all function to suppress all warnings since they aren't relevant to what this test is doing (allows quiet checking of regsub, for instance)
-