| Commit message (Collapse) | Author | Age | Files | Lines | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| | 
| 
| 
| 
| 
|  | 
Thanks, Shawn Ligocki!
3.x version will come as a separate patch.
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
svn+ssh://pythondev@svn.python.org/python/branches/py3k
BaseHTTPServer isn't fixed, this would require too much refactoring.
........
  r87373 | senthil.kumaran | 2010-12-18 17:55:23 +0100 (sam., 18 déc. 2010) | 3 lines
  Fix Issue6791 - Limit the HTTP header readline with _MAXLENGTH. Patch by Antoine Pitrou
........
  r87381 | antoine.pitrou | 2010-12-18 18:59:18 +0100 (sam., 18 déc. 2010) | 3 lines
  NEWS entry for r87373
........
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
  r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line
  #9424: Replace deprecated assert* methods in the Python test suite.
........
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
  r86450 | senthil.kumaran | 2010-11-13 20:27:49 +0800 (Sat, 13 Nov 2010) | 3 lines
  Fix Issue5111 -  Wrap the Ipv6 host with [] in the Host header
........
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
  r85205 | senthil.kumaran | 2010-10-03 23:52:42 +0530 (Sun, 03 Oct 2010) | 3 lines
  Fix Issue10012 - httplib headers, which are (sometimes mistakenly) int are explicitly cast to str (bytes - in py3k).
........
 | 
| |  | 
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
Remove special logic that closes HTTPConnection socket on EPIPE.
If the socket is closed, the client has no chance to read the response
from the server.  EPIPE means that it isn't possible to write more
data from the socket, but not that it is impossible to read.
 | 
| |  | 
 | 
| | 
| 
| 
|  | 
"transfer-encoding: chunked"
 | 
| |  | 
 | 
| | 
| 
| 
| 
| 
|  | 
source_address parameter.
Also cleans up an annotation in the socket documentation.
 | 
| | 
| 
| 
|  | 
`httplib.HTTPConnection.send`. Patch by Kirk McDonald.
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| | 
| 
| 
| 
| 
|  | 
all the upper level libraries that use it, including urllib2.
Added and fixed some tests, and changed docs correspondingly.
Thanks to John J Lee for the patch and the pusing, :)
 | 
| |  | 
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
to listen on in network-oriented tests has been refined in an effort to
  facilitate running multiple instances of the entire regression test suite
  in parallel without issue.  test_support.bind_port() has been fixed such
  that it will always return a unique port -- which wasn't always the case
  with the previous implementation, especially if socket options had been
  set that affected address reuse (i.e. SO_REUSEADDR, SO_REUSEPORT).  The
  new implementation of bind_port() will actually raise an exception if it
  is passed an AF_INET/SOCK_STREAM socket with either the SO_REUSEADDR or
  SO_REUSEPORT socket option set.  Furthermore, if available, bind_port()
  will set the SO_EXCLUSIVEADDRUSE option on the socket it's been passed.
  This currently only applies to Windows.  This option prevents any other
  sockets from binding to the host/port we've bound to, thus removing the
  possibility of the 'non-deterministic' behaviour, as Microsoft puts it,
  that occurs when a second SOCK_STREAM socket binds and accepts to a
  host/port that's already been bound by another socket.  The optional
  preferred port parameter to bind_port() has been removed.  Under no
  circumstances should tests be hard coding ports!
  test_support.find_unused_port() has also been introduced, which will pass
  a temporary socket object to bind_port() in order to obtain an unused port.
  The temporary socket object is then closed and deleted, and the port is
  returned.  This method should only be used for obtaining an unused port
  in order to pass to an external program (i.e. the -accept [port] argument
  to openssl's s_server mode) or as a parameter to a server-oriented class
  that doesn't give you direct access to the underlying socket used.
  Finally, test_support.HOST has been introduced, which should be used for
  the host argument of any relevant socket calls (i.e. bind and connect).
  The following tests were updated to following the new conventions:
    test_socket, test_smtplib, test_asyncore, test_ssl, test_httplib,
    test_poplib, test_ftplib, test_telnetlib, test_socketserver,
    test_asynchat and test_socket_ssl.
  It is now possible for multiple instances of the regression test suite to
  run in parallel without issue.
 | 
| |  | 
 | 
| | 
| 
| 
| 
|  | 
httplib will now raise IncompleteRead and close the connection instead
of raising ValueError.
 | 
| |  | 
 | 
| | 
| 
| 
| 
| 
| 
|  | 
it closes itself.  When the stream is read in several calls to read(n),
it should behave in the same way if HTTPConnection knows where the end
of the stream is (through self.length).  Added a test case for this
behaviour.
 | 
| |  | 
 | 
| | 
| 
| 
| 
|  | 
socket.create_connection function. Also added a small
test for this, and updated NEWS file.
 | 
| | 
| 
| 
|  | 
You might want to review this change as it's my first time.  Be gentle. :-)
 | 
| |  | 
 | 
| | 
| 
| 
| 
| 
|  | 
changes in the tests, so failing one test won't produce strange
results in others. Also relaxed the timeout settings in the test
(where actually the value didn't mean anything).
 | 
| | 
| 
| 
| 
|  | 
connection with an optional timeout, and modified httplib.py to
use this function in HTTPConnection. Applies patch 1676823.
 | 
| | 
| 
| 
|  | 
HTTPConnection.request().
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 | 
| | 
| 
| 
|  | 
separates ip address from the port to accommodate ipv6 addresses.
 | 
| | 
| 
| 
| 
| 
|  | 
Hack httplib to work with broken Akamai proxies.
Make sure that httplib doesn't add extract Accept-Encoding or
Content-Length headers if the client has already set them.
 | 
| |  | 
 | 
| | 
| 
| 
|  | 
Bug fix candidate.
 | 
| | 
| 
| 
|  | 
The test no longer produces output with \r\n in it.
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
imports of test modules now import from the test package.  Other
related oddities are also fixed (like DeprecationWarning filters that
weren't specifying the full import part, etc.).  Also did a general
code cleanup to remove all "from test.test_support import *"'s.  Other
from...import *'s weren't changed.
 | 
| |  | 
 | 
| | 
| 
| 
|  | 
Client code could create responses explicitly.
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
If multiple header fields with the same name occur, they are combined
according to the rules in RFC 2616 sec 4.2:
Appending each subsequent field-value to the first, each separated by
a comma. The order in which header fields with the same field-name are
received is significant to the interpretation of the combined field
value.
 | 
| |  | 
 | 
| |  | 
 | 
| |  | 
 |