| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
LGTM=bradfitz
R=bradfitz
CC=golang-codereviews
https://golang.org/cl/168860044
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Just to confirm the fix, by typing the follwing:
go test -run=TestLookupIPDeadline -dnsflood or
go test -run=TestLookupIPDeadline -dnsflood -tags netgo
Update #8602
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/166740043
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Before this CL, if the system resolver does a very slow DNS
lookup for a particular host, all subsequent requests for that
host will hang waiting for that lookup to complete. That is
more or less expected when Dial is called with no deadline.
When Dial has a deadline, though, we can accumulate a large
number of goroutines waiting for that slow DNS lookup. Try to
avoid this problem by restarting the DNS lookup when it is
redone after a deadline is passed.
This CL also avoids creating an extra goroutine purely to
handle the deadline.
No test because we would have to simulate a slow DNS lookup
followed by a fast DNS lookup.
Fixes #8602.
LGTM=bradfitz
R=bradfitz, mikioh.mikioh
CC=golang-codereviews, r, rsc
https://golang.org/cl/154610044
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We force runtime.GC before WriteHeapProfile with -test.heapprofile.
Make it possible to do the same with the HTTP interface.
Some servers only run a GC every few minutes.
On such servers, the heap profile will be a few minutes stale,
which may be too old to be useful.
Requested by private mail.
LGTM=dvyukov
R=dvyukov
CC=golang-codereviews
https://golang.org/cl/161990043
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The http package by default adds "Accept-Encoding: gzip" to outgoing
requests, unless it's a bad idea, or the user requested otherwise.
Only when the http package adds its own implicit Accept-Encoding header
does the http package also transparently un-gzip the response.
If the user requested part of a document (e.g. bytes 40 to 50), it appears
that Github/Varnish send:
range(gzip(content), 40, 50)
And not:
gzip(range(content, 40, 50))
The RFC 2616 set of replacements (with the purpose of
clarifying ambiguities since 1999) has an RFC about Range
requests (http://tools.ietf.org/html/rfc7233) but does not
mention the interaction with encodings.
Regardless of whether range(gzip(content)) or gzip(range(content)) is
correct, this change prevents the Go package from asking for gzip
in requests if we're also asking for Range, avoiding the issue.
If the user cared, they can do it themselves. But Go transparently
un-gzipping a fragment of gzip is never useful.
Fixes #8923
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/155420044
|
|
|
|
|
|
|
|
|
| |
Fixes #8534
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/149340044
|
|
|
|
|
|
|
|
|
| |
Fixes #8086.
LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/153420044
|
|
|
|
|
|
|
| |
LGTM=minux
R=bradfitz, minux
CC=golang-codereviews
https://golang.org/cl/154220043
|
|
|
|
|
|
|
| |
TBR=0intro
R=golang-codereviews
CC=golang-codereviews
https://golang.org/cl/157820043
|
|
|
|
|
|
|
|
|
| |
Fixes #5834.
LGTM=alex.brainman
R=golang-codereviews, bradfitz, alex.brainman, mikioh.mikioh, in60jp, iant
CC=golang-codereviews
https://golang.org/cl/149510043
|
|
|
|
|
|
|
| |
LGTM=adg
R=golang-codereviews, adg
CC=golang-codereviews
https://golang.org/cl/151620043
|
|
|
|
|
|
|
| |
LGTM=bradfitz
R=rsc, bradfitz
CC=aram, golang-codereviews
https://golang.org/cl/154140043
|
|
|
|
|
|
|
|
|
|
| |
This avoids a pop-up box on OS X and it avoids
a test failure if something is using 5555.
I apologize for not noticing this during the review.
TBR=r
CC=golang-codereviews
https://golang.org/cl/152320044
|
|
|
|
|
|
|
|
|
| |
Helpfully supplied by tommi.virtanen in issue 8173.
LGTM=rsc
R=golang-codereviews, rsc
CC=golang-codereviews
https://golang.org/cl/151370043
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
security risk)
http.Client calls URL.String() to fill in the Referer header, which may
contain authentication info. This patch removes authentication info from
the Referer header without introducing any API changes.
A new test for net/http is also provided.
This is the polished version of Alberto García Hierro's
https://golang.org/cl/9766046/
It should handle https Referer right.
Fixes #8417
LGTM=bradfitz
R=golang-codereviews, gobot, bradfitz, mikioh.mikioh
CC=golang-codereviews
https://golang.org/cl/151430043
|
|
|
|
|
|
|
|
|
| |
Fixes #8742.
LGTM=bradfitz
R=golang-codereviews
CC=adg, bradfitz, golang-codereviews, iant
https://golang.org/cl/155910043
|
|
|
|
|
|
|
|
|
|
|
|
| |
This test is flaky, just like TestDualStackTCPListener.
That one was disabled. Disable this one too.
Update #5001
LGTM=bradfitz
R=rlh, bradfitz
CC=golang-codereviews
https://golang.org/cl/154950043
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The nicest solution would be to buffer the message and only write
it if it encodes correctly, but that adds considerable memory and
CPU overhead for a very rare condition. Instead, we just shut
down the connection if this happens.
Fixes #7689.
LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/146670043
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bodies larger than 8KB (the default bufio reader size) weren't
being dumped. Force a read of the body so they're teed into
the response buffer.
Thanks to Steven Hartland for identifying the problem.
Fixes #8089
LGTM=r
R=golang-codereviews, r
CC=adg, golang-codereviews
https://golang.org/cl/144650044
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
See comment 4 of https://code.google.com/p/go/issues/detail?id=8483#c4:
"So if a user creates a http.Client, issues a bunch of
requests and then wants to shutdown it and all opened connections;
what is she intended to do? The report suggests that just waiting for
all pending requests and calling CloseIdleConnections won't do, as
there can be new racing connections. Obviously she can't do what
you've done in the test, as it uses the unexported function. If this
happens periodically, it can lead to serious resource leaks (the
transport is also preserved alive). Am I missing something?"
This CL tracks the user's intention to close all idle
connections (CloseIdleConnections sets it true; and making a
new request sets it false). If a pending dial finishes and
nobody wants it, before it's retained for a future caller, the
"wantIdle" bool is checked and it's closed if the user has
called CloseIdleConnections without a later call to make a new
request.
Fixes #8483
LGTM=adg
R=golang-codereviews, dvyukov, adg
CC=golang-codereviews, rsc
https://golang.org/cl/148970043
|
|
|
|
|
|
|
|
|
|
|
|
| |
1.1.
Use case is SSE recommended configuration: http://www.w3.org/TR/eventsource/#notes
Removes a TODO.
LGTM=bradfitz
R=golang-codereviews, bradfitz, tommi.virtanen
CC=golang-codereviews
https://golang.org/cl/100000044
|
|
|
|
|
|
|
|
|
| |
Fixes #8067
LGTM=r
R=r
CC=golang-codereviews
https://golang.org/cl/146480043
|
|
|
|
|
|
|
|
|
| |
Fixes #8607
LGTM=r
R=r
CC=golang-codereviews
https://golang.org/cl/146470043
|
|
|
|
|
|
|
| |
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/142650043
|
|
|
|
|
|
|
|
|
|
|
| |
attribute values, a la RFC 6265 section 4.1.1 "Syntax".
Fixes #7751.
LGTM=dr.volker.dobler
R=dr.volker.dobler
CC=bradfitz, golang-codereviews
https://golang.org/cl/148890043
|
|
|
|
|
|
|
|
|
| |
Fixes #8724
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/148040043
|
|
|
|
|
|
|
|
|
| |
Fixes #6181
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/148980043
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Not sure why they used empty.s and all these other
packages were special cased in cmd/go instead.
Add them to the list.
This avoids problems with net .s files being compiled
with gcc in cgo mode and gcc not supporting // comments
on ARM.
Not a problem with bytes, but be consistent.
The last change fixed the ARM build but broke the Windows build.
Maybe *this* will make everyone happy. Sigh.
TBR=iant
CC=golang-codereviews
https://golang.org/cl/144530046
|
|
|
|
|
|
|
|
|
| |
In cgo mode it gets passed to gcc, and on ARM
it appears that gcc does not support // comments.
TBR=iant
CC=golang-codereviews
https://golang.org/cl/142640043
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Those C files would have been compiled with 6c.
It's close to impossible to use C correctly anymore,
and the C compilers are going away eventually.
Make them unavailable now.
go1.4.txt change in CL 145890046
LGTM=iant
R=iant
CC=golang-codereviews, r
https://golang.org/cl/149720043
|
|
|
|
|
|
|
| |
LGTM=adg
R=rsc, adg
CC=golang-codereviews
https://golang.org/cl/144240043
|
|
|
|
|
|
|
|
|
| |
Fixes #8594.
LGTM=bradfitz
R=bradfitz
CC=golang-codereviews
https://golang.org/cl/145760043
|
|
|
|
|
|
|
|
|
| |
Fixes #8755.
LGTM=bradfitz
R=bradfitz
CC=golang-codereviews, jtuley
https://golang.org/cl/136710044
|
|
|
|
|
|
|
|
|
|
|
| |
It fails about 25% of the time on OS X.
I don't know what it's trying to do.
Created issue 8764 to correct this, but for now disable.
LGTM=bradfitz, mikioh.mikioh
R=bradfitz, mikioh.mikioh
CC=golang-codereviews
https://golang.org/cl/144070044
|
|
|
|
|
|
|
|
|
| |
To clarify the dependency of NaCl platform.
LGTM=adg
R=golang-codereviews, adg
CC=golang-codereviews
https://golang.org/cl/143830044
|
|
|
|
|
|
|
|
|
| |
Fixes #6611.
LGTM=bradfitz
R=bradfitz
CC=golang-codereviews
https://golang.org/cl/14990045
|
|
|
|
|
|
|
|
|
|
|
|
| |
We believe TestSelfConnect can accidentally connect to
something else listening on or dialing from that port.
Fixes #8680.
LGTM=bradfitz
R=bradfitz
CC=golang-codereviews, rlh
https://golang.org/cl/136700043
|
|
|
|
|
|
|
|
|
| |
Fixes #8722
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/142090043
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The previous implementation used per-socket TCP keepalive options
wrong. For example, it used another level socket option to control
TCP and it didn't use TCP_KEEPINTVL option when possible.
Fixes #8683.
Fixes #8701.
Update #8679
LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/136480043
|
|
|
|
|
|
|
|
|
| |
Fixes #8679.
LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/141730043
|
|
Preparation was in CL 134570043.
This CL contains only the effect of 'hg mv src/pkg/* src'.
For more about the move, see golang.org/s/go14nopkg.
|