This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Allow binding to local address in http.client
Type: enhancement Stage:
Components: IO Versions: Python 3.2
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: Gaz.Davidson, loewis
Priority: normal Keywords:

Created on 2010-06-03 09:33 by Gaz.Davidson, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg106934 - (view) Author: Gaz Davidson (Gaz.Davidson) Date: 2010-06-03 09:33
The option to bind to a local IP address when creating an HTTP connection would be very useful for web testing tools like FunkLoad and webunit. 

For example in FunkLoad it would allow us to run tests with IP-based load balancing.
msg106967 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2010-06-03 18:05
Can you please elaborate? Why would binding be useful?

In any case, what's wrong with 2.7's source_address parameter?
msg106968 - (view) Author: Gaz Davidson (Gaz.Davidson) Date: 2010-06-03 18:16
Oops, I didn't see that in the 2.7 docs, I'll make sure I RTFM in future!

source_address will do perfectly, sorry for wasting your time and thanks for the quick response.

Cheers

Gaz
History
Date User Action Args
2022-04-11 14:57:01adminsetgithub: 53130
2010-06-03 18:36:41loewissetstatus: open -> closed
resolution: out of date
2010-06-03 18:16:08Gaz.Davidsonsetmessages: + msg106968
2010-06-03 18:05:12loewissetnosy: + loewis
messages: + msg106967
2010-06-03 17:58:05loewissettitle: Allow binding to local address in httplib / http.client -> Allow binding to local address in http.client
versions: + Python 3.2, - Python 2.7, Python 3.3
2010-06-03 09:33:21Gaz.Davidsoncreate