Skip to content
This repository was archived by the owner on Nov 23, 2017. It is now read-only.
This repository was archived by the owner on Nov 23, 2017. It is now read-only.

Connection establishment needs to be able to call bind() #9

@GoogleCodeExporter

Description

@GoogleCodeExporter
The blocking sequence of commands are:

s = socket.socket()
s.bind(local_address)
s.connect(remote_address)
...

The current api create_connection() does not provide the ability to provide a 
'local' address to bind to. Bind must be called between socket.socket() and 
sock.connect(), so it is appropriate to have it inside the create_connection() 
call or document clearly that create_connection(sock=sock) is preferred for 
anything like this.

Original issue reported on code.google.com by step...@thorne.id.au on 20 Mar 2013 at 12:48

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions