Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/http: TestTransportSocketLateBinding: Test appears to have leaked a Transport (win32) #5263

Closed
gopherbot opened this issue Apr 10, 2013 · 4 comments

Comments

@gopherbot
Copy link

by capnm9:

running "go test" in net/http fails always with:

go1.1beta2.windows-386.zip 
go version devel +d58997478ec6 Mon Apr 08 00:09:35 2013 -0700 windows/386
(Vista)

-- FAIL: TestTransportSocketLateBinding (1.24 seconds)
    z_last_test.go:96: Test appears to have leaked a Transport:
        net.(*ioSrv).ExecIO(0x11e71898, 0x11e684a0, 0x13932480, 0x0, 0x0, ...)
            C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist012168375/go/src/pkg/net/fd_windows.go:236 +0x664
        net.(*netFD).Read(0x1384f600, 0x1363d000, 0x1000, 0x1000, 0x0, ...)

A similar linux issue #5005 #3

Attachments:

  1. t.txt (10537 bytes)
@bradfitz
Copy link
Contributor

Comment 1:

Use "go test -short".  That's what src/all.bash (or all.bat) uses.
The HTTP leak tests don't run with -short.
The full tests for net/http pass on Darwin and Linux, and I don't do http development on
any other platforms.
If you want to fix the leaks(?) and/or flaky tests(?) on Windows, feel free, but it's
not a priority for me currently.

Labels changed: added priority-someday, removed priority-triage.

@gopherbot
Copy link
Author

Comment 2 by capnm9:

Thanks, I didn't know that. I don't develop on or care about Windows either. I was just
trying to install Go on school computers and thought something vital may be broken.

@bradfitz
Copy link
Contributor

Comment 3:

Okay, I'll retract this for now then.
There are easier ways to install Go on Windows, btw.  I think we have click-click-click
installers, even.

Status changed to Retracted.

@gopherbot
Copy link
Author

Comment 4 by capnm9:

> There are easier ways to install Go on Windows, 
> btw.  I think we have click-click-click installers, even.
In the theory yes. At least for java, python and another
zillion languages. In the praxis is every Go binary blocked by
an antivirus (known issue since a long time) and I'm not allowed
to disable that madness.
I disabled the virus scanning for C:/go but if somebody compiles
something, it get blocked, deleted, what ever. Great.
It isn't easy to teach Go;)

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants