Skip to content

net/http: use errors.As when checking for net.Error in Serve #49177

Closed as not planned
@janisz

Description

@janisz

What did you do?

if ne, ok := err.(net.Error); ok && ne.Temporary() {

What did you expect to see?

var ne net.Error
if errors.As(err, &ne) && ne.Temporary() {

What did you see instead?

if ne, ok := err.(net.Error); ok && ne.Temporary() {

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeWaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions