[issue16062] Socket closed prematurely in httplib for https

2021-04-28 Thread Irit Katriel


Irit Katriel  added the comment:

Issue5542 was fixed, so if it's the same thing this is also fixed. If it's not 
the same thing, then python 2.7 is past EOL so please create a new issue if you 
can reproduce this problem in 3.8+.

--
nosy: +iritkatriel
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16062] Socket closed prematurely in httplib for https

2012-09-28 Thread Thomas Lee

Thomas Lee added the comment:

Thanks ABR. You may be better off raising a ticket against requests 
(https://github.com/kennethreitz/requests).

I'm assuming what you want to happen here is for the session.post() call to 
return the 401 response without raising an exception. Perfectly reasonable, but 
to the best of my knowledge the requests library isn't in Python's standard 
library -- and so this is not the place to get it fixed :)

--
nosy: +thomaslee

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16062
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16062] Socket closed prematurely in httplib for https

2012-09-28 Thread ABR

ABR added the comment:

If that's where the bug is.  I forgot to mention this issue seems identical to 
5542 (http://bugs.python.org/issue5542), but for https.  The fix there was in 
the underlying url/httplib.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16062
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16062] Socket closed prematurely in httplib for https

2012-09-27 Thread ABR

New submission from ABR:

When attempting to use basic auth over https with a server that sends 401 and 
closes the connection as soon as the headers missing auth are received, the 
process aborts with a broken pipe when (presumably) trying to send the POST 
body.

session = requests.session(auth=(USER, PASSWORD), verify=False)
resp = session.post('https://foo.com/something')
  -- requests.exceptions.ConnectionError: [Errno 32] Broken pipe

--
components: Library (Lib)
messages: 171379
nosy: ABR
priority: normal
severity: normal
status: open
title: Socket closed prematurely in httplib for https
type: behavior
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16062
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com