1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/server
Hu Keping d9bf8163ad Fix connection block when using docker stats API
For now CLI `docker stats` will not block even if the container was
not running is because there is a 2s timeout setting when waiting for
the response.

I think why we hang there waiting for the container to run is because we
want to get the stats of container immediately when it starts running.
But it will block when use the API directly, for example
- curl
- Google Chrome plugin, Postman
- Firefox plugin, RESTClient

This patch keeps the feature that getting info immediately when container
starts running and in the meantime, it will not block when using the API
directrly.

Signed-off-by: Hu Keping <hukeping@huawei.com>
2015-09-06 17:21:41 +08:00
..
auth.go Split API handlers into domain specific files 2015-08-03 11:12:44 -04:00
container.go Fix connection block when using docker stats API 2015-09-06 17:21:41 +08:00
copy.go Fix incorrect comment 2015-08-11 19:45:23 -04:00
daemon.go fix golint warnings/errors on package api/types/ 2015-08-07 09:43:43 +08:00
exec.go fix a panic when the exec fails to start 2015-08-22 00:01:44 +08:00
form.go Windows - make docker cp functional 2015-08-06 11:22:38 -07:00
form_test.go Fix regression in stats API endpoint where stream query param default is true 2015-05-29 22:38:36 +02:00
image.go [daemon] Refactor image_delete.go 2015-08-28 11:01:24 -07:00
profiler.go api/server fix golint errors/warnings. 2015-07-28 22:44:39 +00:00
server.go Remove /containers/ps from the api router. 2015-09-01 05:17:35 -04:00
server_experimental_unix.go golint fixes for daemon/ package 2015-08-27 22:07:42 -07:00
server_stub.go Mark network ui endpoints unix-only 2015-08-10 21:49:27 -07:00
server_unix.go Remove pkg/systemd 2015-08-06 14:35:00 +02:00
server_windows.go Cleanup: Merge adjustCPUShares to adoptContainerSettings 2015-08-06 08:15:14 +08:00
volume.go Add volume API/CLI 2015-08-26 13:37:52 -04:00