10000 Retry Connection reset? · Issue #43 · sethgrid/pester · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Retry Connection reset? #43
Open
Open
@StevenACoffman

Description

@StevenACoffman

When I am making GET requests using Pester, I sporadically get connection reset by peer errors:

read tcp 10.24.8.45:37286->13.49.93.125:443 read: connection reset by peer

I can detect these errors using:

if opErr, ok := err.(*net.OpError); ok {
    if syscallErr, ok := opErr.Err.(*os.SyscallError); ok {
        if syscallErr.Err == syscall.ECONNRESET {
            fmt.Println("Found a ECONNRESET")
        }
    }
}

I would like Pester to retry these requests. What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0