[issue21032] Socket leak if HTTPConnection.getresponse() fails

2020-10-23 Thread Felipe Rodrigues


Change by Felipe Rodrigues :


--
nosy: +fbidu
nosy_count: 3.0 -> 4.0
pull_requests: +21848
pull_request: https://github.com/python/cpython/pull/22737

___
Python tracker 

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



[issue21032] Socket leak if HTTPConnection.getresponse() fails

2014-12-01 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Few notes about patches. Check patches for trailing spaces. And it would be 
more suitable if you provide single patch instead of a couple of patches. I 
have slightly changed the test, so it checks that the file is actually closed, 
not lost, The fix LGTM.

Thank you for your contribution Martin.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 2.7

___
Python tracker 

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



[issue21032] Socket leak if HTTPConnection.getresponse() fails

2014-12-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f88c00391dd8 by Serhiy Storchaka in branch '2.7':
Issue #21032. Fixed socket leak if HTTPConnection.getresponse() fails.
https://hg.python.org/cpython/rev/f88c00391dd8

New changeset ba72da4883eb by Serhiy Storchaka in branch '3.4':
Issue #21032. Fixed socket leak if HTTPConnection.getresponse() fails.
https://hg.python.org/cpython/rev/ba72da4883eb

New changeset 62a058c76869 by Serhiy Storchaka in branch 'default':
Issue #21032. Fixed socket leak if HTTPConnection.getresponse() fails.
https://hg.python.org/cpython/rev/62a058c76869

--

___
Python tracker 

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



[issue21032] Socket leak if HTTPConnection.getresponse() fails

2014-12-01 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 561d1d0de518 by Serhiy Storchaka in branch 'default':
Issue #21032: Deprecated the use of re.LOCALE flag with str patterns or
https://hg.python.org/cpython/rev/561d1d0de518

--
nosy: +python-dev

___
Python tracker 

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



[issue21032] Socket leak if HTTPConnection.getresponse() fails

2014-12-01 Thread Martin Panter

Martin Panter added the comment:

Hi Serhiy, I submitted the form online on 22 Nov; just patiently waiting for it 
to come through now.

In the last few minutes I noticed an asterisk has appeared against my name on 
the bug tracker, so hopefully it is all good now.

--

___
Python tracker 

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



[issue21032] Socket leak if HTTPConnection.getresponse() fails

2014-12-01 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

What is the status of your contributor agreement Martin?

--

___
Python tracker 

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



[issue21032] Socket leak if HTTPConnection.getresponse() fails

2014-11-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Could you please submit a contributor form 
(https://www.python.org/psf/contrib/) Martin?

--
assignee:  -> serhiy.storchaka
nosy: +serhiy.storchaka
stage:  -> patch review
versions: +Python 3.5

___
Python tracker 

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



[issue21032] Socket leak if HTTPConnection.getresponse() fails

2014-03-22 Thread Martin Panter

Changes by Martin Panter :


Added file: http://bugs.python.org/file34580/close.patch

___
Python tracker 

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



[issue21032] Socket leak if HTTPConnection.getresponse() fails

2014-03-22 Thread Martin Panter

New submission from Martin Panter:

Here is a regression test and patch to close the socket reader when a HTTP 
server causes getresponse() to fail, for instance if the server times out and 
drops the connection without sending any response. Without the patch the socket 
will only be closed by the garbage collector at some arbitrary point.

--
components: Library (Lib)
files: test.patch
keywords: patch
messages: 214546
nosy: vadmium
priority: normal
severity: normal
status: open
title: Socket leak if HTTPConnection.getresponse() fails
type: resource usage
versions: Python 3.4
Added file: http://bugs.python.org/file34579/test.patch

___
Python tracker 

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