summaryrefslogtreecommitdiff
path: root/docker/transport/unixconn.py
Commit message (Collapse)AuthorAgeFilesLines
* Use six.moves to handle a py2+py3 importAnthony Sottile2018-05-251-5/+1
| | | | Signed-off-by: Anthony Sottile <asottile@umich.edu>
* Fix broken unbuffered streaming with Py3Joffrey F2017-11-081-6/+5
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Disable buffering based on presence of Connection Upgrade headersJoffrey F2017-11-021-27/+25
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Prevent data loss when attaching to containerChris Harris2017-11-021-3/+30
| | | | | | | | | | | | | | | The use of buffering within httplib.HTTPResponse can cause data to be lost. socket.makefile() is called without a bufsize, which causes a buffer to be used when recieving data. The attach methods do a HTTP upgrade to tcp before the raw socket is using to stream data from the container. The problem is that if the container starts stream data while httplib/http.client is reading the response to the attach request part of the data ends will end up in the buffer of fileobject created within the HTTPResponse object. This data is lost as after the attach request data is read directly from the raw socket. Signed-off-by: Chris Harris <chris.harris@kitware.com>
* Add attributes for picklingAn Ha2017-06-201-0/+5
| | | | | | | | When using the multiprocessing module, it throws an AttributeError, complaining that the object does not have the attribute used. This adds the missing attributes and allows them to be pickled. Signed-off-by: An Ha <zero579911@gmail.com>
* Update adapters to use pool_connections instead of num_poolsJoffrey F2016-10-041-2/+2
| | | | Signed-off-by: Joffrey F <joffrey@docker.com>
* Number of pools in adapter is configurable1207-configurable-num-poolsJoffrey F2016-09-121-7/+13
| | | | | | Default increased from 10 to 25 Signed-off-by: Joffrey F <joffrey@docker.com>
* Fix licensesBen Firshman2016-09-051-13/+0
| | | | | | | * Complete main LICENSE * Remove unnecessary licenses from individual files Signed-off-by: Ben Firshman <ben@firshman.co.uk>
* Reorganize docker.transport packageJoffrey F2016-06-021-0/+94
Signed-off-by: Joffrey F <joffrey@docker.com>