softlayer / softlayer-object-storage-python

SoftLayer Object Storage Python Client
Other
19 stars 30 forks source link

Custom ports cause getaddrinfo-related exceptions with chunked uploads #40

Open briancline opened 9 years ago

briancline commented 9 years ago

ChunkedUploadConnection doesn't seem to be ensuring that any port it parses out of the connection string is actually an int() before passing it onto an HTTPConnection/HTTPSConnection object. From there, it is expected to be an int, and getaddrinfo will also want this.

Currently this barfs with an extremely misleading "Disconnected" exception with a 0 status code.