Skip to content

net/http: nil pointer panic #6780

Closed
Closed
@andybalholm

Description

@andybalholm
One of my users had a series of crashes from a nil pointer dereference deep in the
net/http package. Since it's in a separate goroutine, it brings down the whole process.

I can't figure out where this nil pointer is coming from. Apparently it is the reader
inside the bufio.Reader.

Is there a good place to put a nil pointer check in the net/http code so that the user
gets an error instead of a panic?

I'm attaching the panic message.

Attachments:

  1. errors.log (803900 bytes)

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