kubo/commands
Robert Carlsen ed23d99d6f fix panic where closenotify was called from wrong goroutine
Previously, this was the result when running a test with go1.6rc2:

    go test github.com/ipfs/go-ipfs/commands/http
    panic: net/http: CloseNotify called after ServeHTTP finished

    goroutine 19 [running]:
    net/http.(*response).CloseNotify(0xc8202ca1a0, 0x0)
        /home/r/go/src/net/http/server.go:1533 +0x9d
    github.com/ipfs/go-ipfs/commands/http.internalHandler.ServeHTTP.func2(0x7f42c9d1d180, 0xc8202ca1a0, 0x7f42c9d66e90, 0xc8200f0380, 0xc8201d40d0)
        /home/r/src/github.com/ipfs/go-ipfs/commands/http/handler.go:143 +0x39
    created by github.com/ipfs/go-ipfs/commands/http.internalHandler.ServeHTTP
        /home/r/src/github.com/ipfs/go-ipfs/commands/http/handler.go:147 +0x49d
    FAIL	github.com/ipfs/go-ipfs/commands/http	0.013s

I had also encountered this panic when trying to use the webui.

License: MIT
Signed-off-by: Robert Carlsen <rwcarlsen@gmail.com>
2016-02-08 15:49:58 -06:00
..
cli Flatten multipart file transfers 2016-01-12 08:22:55 -08:00
files trivial: various superficial fixes 2016-02-03 15:46:28 +10:00
http fix panic where closenotify was called from wrong goroutine 2016-02-08 15:49:58 -06:00
argument.go commands: Added Recursive modifier to Argument 2014-11-18 02:13:54 -08:00
channelmarshaler.go allow channel marshaler to return errors from cmds.Response 2015-09-04 14:12:19 -07:00
command_test.go commands: Refactored Command#Run function signature to (req Request, res Response) 2015-01-23 18:29:29 -08:00
command.go Merge pull request #2256 from ipfs/feat/gx-libp2p 2016-02-05 16:52:02 -08:00
option_test.go tests(commands/option) test the OptionValue methods 2014-11-14 03:19:57 -08:00
option.go Fix cli flag orders (long, short) 2015-10-19 12:53:23 +07:00
reqlog.go command to clear inactive requests from request log 2016-02-04 10:04:04 -08:00
request.go Merge pull request #2256 from ipfs/feat/gx-libp2p 2016-02-05 16:52:02 -08:00
response_test.go Replace 'var * bytes.Buffer' with '\1 := new(bytes.Buffer)' 2015-05-26 23:18:04 +07:00
response.go no newlines in json objects 2015-11-30 15:23:48 -08:00