Skip to content

net/http, net/http/httptest: deadlock when closing server #15521

Closed
@rogpeppe

Description

@rogpeppe

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?

Checked on Go tip (80e9a7f) and Go 1.6.2.

  1. What operating system and processor architecture are you using (go env)?

linux/amd64

  1. What did you do?

https://play.golang.org/p/jIKQ1npwUl

  1. What did you expect to see?

It should not deadlock.

  1. What did you see instead?

It deadlocks trying to read bytes from a network connection that are never delivered.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions