1. 15 Kas, 2017 1 kayıt (commit)
  2. 06 Kas, 2017 1 kayıt (commit)
    • Nir Soffer's avatar
      bpo-31945: Configurable blocksize in HTTP(S)Connection (#4279) · ad455cd9
      Nir Soffer yazdı
      blocksize was hardcoded to 8192, preventing efficient upload when using
      file-like body. Add blocksize argument to __init__, so users can
      configure the blocksize to fit their needs.
      
      I tested this uploading data from /dev/zero to a web server dropping the
      received data, to test the overhead of the HTTPConnection.send() with a
      file-like object.
      
      Here is an example 10g upload with the default buffer size (8192):
      
      $ time ~/src/cpython/release/python upload-httplib.py 10 https://localhost:8000/
      Uploaded 10.00g in 17.53 seconds (584.00m/s)
      
      real	0m17.574s
      user	0m8.887s
      sys	0m5.971s
      
      Same with 512k blocksize:
      
      $ time ~/src/cpython/release/python upload-httplib.py 10 https://localhost:8000/
      Uploaded 10.00g in 6.60 seconds (1551.15m/s)
      
      real	0m6.641s
      user	0m3.426s
      sys	0m2.162s
      
      In real world usage the difference will be smaller, depending on the
      local and remote storage and the network.
      
      See https://github.com/nirs/http-bench for more info.
      ad455cd9
  3. 26 Eki, 2017 1 kayıt (commit)
  4. 18 Eyl, 2017 1 kayıt (commit)
  5. 15 Eyl, 2017 1 kayıt (commit)
  6. 10 Eki, 2016 1 kayıt (commit)
  7. 11 Eyl, 2016 1 kayıt (commit)
  8. 07 Eyl, 2016 1 kayıt (commit)
  9. 27 Agu, 2016 1 kayıt (commit)
  10. 24 Agu, 2016 1 kayıt (commit)
    • Martin Panter's avatar
      Issue #12319: Support for chunked encoding of HTTP request bodies · 3c0d0baf
      Martin Panter yazdı
      When the body object is a file, its size is no longer determined with
      fstat(), since that can report the wrong result (e.g. reading from a pipe).
      Instead, determine the size using seek(), or fall back to chunked encoding
      for unseekable files.
      
      Also, change the logic for detecting text files to check for TextIOBase
      inheritance, rather than inspecting the “mode” attribute, which may not
      exist (e.g. BytesIO and StringIO).  The Content-Length for text files is no
      longer determined ahead of time, because the original logic could have been
      wrong depending on the codec and newline translation settings.
      
      Patch by Demian Brecht and Rolf Krahl, with a few tweaks by me.
      3c0d0baf
  11. 23 Agu, 2016 2 kayıt (commit)
  12. 12 Agu, 2016 1 kayıt (commit)
  13. 29 May, 2016 1 kayıt (commit)
  14. 09 Nis, 2016 1 kayıt (commit)
    • Martin Panter's avatar
      Issue #21069: Move test_fileno() from test_urllibnet and rewrite it · d979b2cf
      Martin Panter yazdı
      * No longer attempts to close already freed socket file descriptor
      * Use socket object to be compatible with Windows
      * Do not use a timeout to avoid complication with non-blocking mode
      * Use internal localhost server rather than depending on a third party
      * Avoid trouble with buffered HTTP data by testing tunnelled CONNECT data
      d979b2cf
  15. 17 Mar, 2016 1 kayıt (commit)
  16. 09 Şub, 2016 1 kayıt (commit)
  17. 22 Mar, 2015 1 kayıt (commit)
  18. 05 Nis, 2015 1 kayıt (commit)
    • R David Murray's avatar
      #3566: Clean up handling of remote server disconnects. · cae7bdb4
      R David Murray yazdı
      This changeset does two things: introduces a new RemoteDisconnected exception
      (that subclasses ConnectionResetError and BadStatusLine) so that a remote
      server disconnection can be detected by client code (and provides a better
      error message for debugging purposes), and ensures that the client socket is
      closed if a ConnectionError happens, so that the automatic re-connection code
      can work if the application handles the error and continues on.
      
      Tests are added that confirm that a connection is re-used or not re-used
      as appropriate to the various combinations of protocol version and headers.
      
      Patch by Martin Panter, reviewed by Demian Brecht.  (Tweaked only slightly by
      me.)
      cae7bdb4
  19. 12 Mar, 2015 1 kayıt (commit)
  20. 27 Şub, 2015 1 kayıt (commit)
  21. 20 Şub, 2015 2 kayıt (commit)
  22. 03 Şub, 2015 1 kayıt (commit)
  23. 26 Ock, 2015 1 kayıt (commit)
  24. 25 Ock, 2015 1 kayıt (commit)
  25. 23 Ock, 2015 1 kayıt (commit)
  26. 13 Ara, 2014 1 kayıt (commit)
  27. 12 Ara, 2014 1 kayıt (commit)
  28. 07 Ara, 2014 1 kayıt (commit)
  29. 01 Ara, 2014 1 kayıt (commit)
  30. 25 Kas, 2014 1 kayıt (commit)
  31. 05 Kas, 2014 2 kayıt (commit)
  32. 03 Kas, 2014 1 kayıt (commit)
  33. 23 Tem, 2014 1 kayıt (commit)
  34. 14 Nis, 2014 1 kayıt (commit)
  35. 19 Mar, 2014 1 kayıt (commit)
  36. 08 Şub, 2014 1 kayıt (commit)
  37. 17 Ara, 2013 1 kayıt (commit)