1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/pkg
Stephen J Day ec2289b2d9 Avoid panic on write after close in http
By adding a (*WriteFlusher).Close, we limit the Write calls to possibly
deallocated http response buffers to the lifetime of an http request.
Typically, this is seen as a very confusing panic, the cause is usually a
situation where an http.ResponseWriter is held after request completion. We
avoid the panic by disallowing further writes to the response writer after the
request is completed.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-11-02 18:14:43 -08:00
..
ansiescape Use notary library for trusted image fetch and signing 2015-07-24 14:08:20 -07:00
archive Merge pull request #17088 from Microsoft/sjw/archive_hang_fix 2015-10-19 17:18:25 -07:00
broadcaster Move types from progressreader and broadcastwriter to broadcaster 2015-10-06 22:20:07 -04:00
chrootarchive Merge pull request #17035 from estesp/fix-build-dir-perms 2015-10-20 08:57:19 -07:00
devicemapper devmapper: Implement deferred deletion functionality 2015-10-06 17:37:21 -04:00
directory Add user namespace (mapping) support to the Docker engine 2015-10-09 17:47:37 -04:00
discovery Enhancing --cluster-advertise to support <interface-name> 2015-10-27 11:03:22 -07:00
fileutils Windows: Fix warning on info 2015-09-18 13:39:12 -07:00
graphdb Merge pull request #16054 from jfrazelle/update-sqlite3-dep 2015-09-03 19:20:57 -07:00
homedir Update libcontainer 2015-07-16 16:02:26 -07:00
httputils Update httputils tests 2015-09-09 14:59:25 +02:00
idtools Correct build-time directory creation with user namespaced daemon 2015-10-20 08:59:48 -04:00
integration Vendoring shakers library and update go-check 2015-10-17 14:28:08 +02:00
ioutils Avoid panic on write after close in http 2015-11-02 18:14:43 -08:00
jsonlog add labels/env log option for jsonfile 2015-10-12 21:12:46 +02:00
jsonmessage Revert "Merge pull request #16228 from duglin/ContextualizeEvents" 2015-09-29 14:26:51 -04:00
listenbuffer linting changes 2015-06-17 01:16:57 +03:00
longpath Windows: Fixing longpath hanlding of UNC paths. 2015-09-30 19:36:08 -07:00
mflag bump libcontainer to 902c012e85cdae6bb68d8c7a0df69a42f818ce96 2015-10-06 17:55:09 +02:00
mount pkg: mount: golint 2015-07-22 10:26:10 +02:00
namesgenerator Add Bassi 2015-10-23 01:32:47 +02:00
nat Adding support to publish on custom host port ranges 2015-08-15 02:41:29 +00:00
parsers Merge pull request #17573 from Microsoft/10662-parsersos 2015-11-02 14:31:09 -08:00
pidfile Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
plugins Add user namespace (mapping) support to the Docker engine 2015-10-09 17:47:37 -04:00
pools Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
progressreader Move types from progressreader and broadcastwriter to broadcaster 2015-10-06 22:20:07 -04:00
promise Move Go() promise-like func from utils to pkg/promise 2014-09-29 23:16:27 -07:00
proxy Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
pubsub Don't use time.After if there is no timeout 2015-07-14 09:14:51 -07:00
random Prefer crypto rand seed for pkg/rand 2015-07-29 12:55:57 -04:00
reexec make docker compile on freebsd 2015-07-29 21:25:56 +03:00
signal Windows: [TP4] docker kill handling 2015-10-13 16:04:49 -07:00
sockets make docker compile on freebsd 2015-07-29 21:25:56 +03:00
stdcopy Added test coverage to StdCopy closes #11584 2015-09-25 11:15:45 +02:00
streamformatter Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
stringid Add GenerateNonCryptoID function to avoid entropy exhaustion 2015-07-28 22:31:01 -07:00
stringutils pkg: stringutils: Add more tests to strslice 2015-09-01 20:27:45 +02:00
symlink Windows: Fix long path handling for docker build 2015-09-15 10:58:11 -07:00
sysinfo Validate --cpuset-cpus, --cpuset-mems 2015-09-27 16:38:58 +02:00
system Log error from unmountVolumes on cleanup 2015-11-02 14:11:42 -08:00
tailfile typofix - https://github.com/vlajos/misspell_fixer 2015-08-07 23:25:49 +01:00
tarsum tarsum: add a big fat warning 2015-08-25 16:50:08 -04:00
term Remove unused variable, fix #16310 2015-09-15 22:20:10 +02:00
timeoutconn Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
timeutils Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
tlsconfig tlsconfig: better format for error message in tlsconfig 2015-07-30 14:15:41 -04:00
truncindex graph: add parent img refcount for faster rmi 2015-10-07 19:09:44 +02:00
ulimit Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
units Multiple fixes to 'docker stats' output: 2015-07-30 10:14:57 +03:00
urlutil Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
useragent Lint on pkg/* packages 2015-07-27 21:26:21 +02:00
version Fix minor typo 2015-03-25 00:46:22 +08:00
README.md

pkg/ is a collection of utility packages used by the Docker project without being specific to its internals.

Utility packages are kept separate from the docker core codebase to keep it as small and concise as possible. If some utilities grow larger and their APIs stabilize, they may be moved to their own repository under the Docker organization, to facilitate re-use by other projects. However that is not the priority.

The directory pkg is named after the same directory in the camlistore project. Since Brad is a core Go maintainer, we thought it made sense to copy his methods for organizing Go code :) Thanks Brad!

Because utility packages are small and neatly separated from the rest of the codebase, they are a good place to start for aspiring maintainers and contributors. Get in touch if you want to help maintain them!