Skip to content

http: unsolicited idle response #2057

@gopherbot

Description

@gopherbot

by hectorchu:

http://code.google.com/p/go/source/browse/src/pkg/http/transport.go#502

hitting this on Windows as in:
2011/07/09 17:30:28 Unsolicited response received on idle HTTP channel starting
with ""; err=WSARecv tcp 192.168.137.130:55092: The specified network name is
no
 longer available.

Probably because the code doesn't anticipate errors other than EOF and INVAL. Suggest
changing the line a little above it:

if (err == os.EOF || err == os.EINVAL) && !pc.expectingResponse() {

to

if len(pb) == 0 && !pc.expectingResponse() {

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