Skip to content

net/http: dragonfly bsd very flaky #7685

Closed
@mikioh

Description

@mikioh
A few nil pointer deref. crashes and socket leaks in test cases have been seen during
struggling against DragonFly BSD network stack. Not sure it's worth to fix, just a
reminder.

Typical cases (mostly in serve_test.go and transport_test.go):

// No response.Body.Close
resp, err := Get(ts.URL)
if err != nil {
        t.Fatal(err)
}
body, err := ioutil.ReadAll(resp.Body)  

// Wild access to resp.Body
resp, err := c.Get(ts.URL)
if err != nil {
        t.Error(err)
}
ioutil.ReadAll(resp.Body)

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeSuggestedIssues that may be good for new contributors looking for work to do.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions