Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/ooni/oohttp
Fork of Go stdlib's net/http that works with alternative TLS libraries like refraction-networking/utls.
https://github.com/ooni/oohttp
The previous link at
https://insouciant.org/tech/connection-management-in-chromium/ is no
longer...
This fixes a race condition where
TestReverseProxyWebSocketCancelation appears to
panic after ot...
When forwarding a request, a SingleHostReverseProxy appends the
request's path to the target URL...
For latest http2 changes.
Which then required updating golang.org/x/sys in cmd too.
Change-Id:...
d4213318758840aa3d83d15f8d5a066a6c58a542 authored over 4 years ago by Brad Fitzpatrick <[email protected]>
Reduces binary size by 4K, not counting the http2 changes (in CL
231119) that'll be bundled into...
Fixes #38079
Change-Id: Iac02d7f9574061bb26d1d9a41bb6ee6cc38934e5
Reviewed-on: https://go-revie...
The switch statement can be statically optimized by the compiler,
whereas similarly optimizing t...
Ensures that a canceled client request for Switching Protocols
(e.g. h2c, Websockets) will cause...
Everywhere else is using "cancellation"
The reasoning is mentioned in 170060
> Though there is...
b731fd7caf2017e73d596cca79c98f7650a24f73 authored over 4 years ago by Tyson Andre <[email protected]>
golang.org/cl/147598 added the support for delta computation for mutex
and block profiles. In fa...
In some slow environment, the goroutine for mutexHog2 may not run
within 1secs. So, try with inc...
Wait for Listeners to drop to zero too, not just conns.
Fixes #33313
Change-Id: I09350ae380879...
8b13d969c9cce7b5fe497cd8efbff615efedc38a authored over 4 years ago by Brad Fitzpatrick <[email protected]>
When the seconds param is given, the block and mutex profile endpoints
report the difference bet...
When the request context was canceled, the Transport.RoundTrip method
could return before the fe...
Fixes #38095
Change-Id: I4f65ce01e7aed22240eee979c41535d0b8b9a8dc
Reviewed-on: https://go-revie...
Previously, details about the underlying fetch error
were not visible in the net/http error text...
These hard-coded timeouts make the tests flaky on slow builders (such
as solaris-amd64-oraclerel...
Change-Id: I4ff5411543c200344babb754fc089e10e29e0fe4
Reviewed-on: https://go-review.googlesource...
Updates bundled http2 to x/net git rev 63522dbf7
http2: reduce allocations of (*clientConnR...
e8dc908fce586eacc8dd1df5ce863a32fd6fbbe8 authored over 4 years ago by Emmanuel T Odeke <[email protected]>
This removes the TODO leftover by replacing the original int32 for
atomicBool that mimicks atomi...
Updates #37322
Change-Id: I3b8369cd9e0ed5e4b3136cedaa2f70698ead2270
Reviewed-on: https://go-rev...
Cookies already work as http.Request parses the Cookie header on-demand
when the Cookie methods ...
If an error occurs during the HTTP/2 upgrade phase, originally this
resulted in a pconn with pco...
Issue #37598 reports a nil-panic in *Client.send that can
only occur if one of the RoundTripper ...
This CL changes some unit test functions, making sure that these tests (and goroutines spawned d...
a9df84bfc12228753ca047d12d789d2afcf4035f authored over 4 years ago by Ziheng Liu <[email protected]>Fixes #37311
Change-Id: I9e1f37e991e5c203fe72061692f47584fbadfc58
Reviewed-on: https://go-revie...
My fault (from CL 4245070), sorry.
Change-Id: Ib95d3170dc326e74aa74c22421c4e44a8b00f577
Reviewe...
As of CL 175857, the client code checks for known round tripper
implementations, and uses simple...
This reverts commit e6c12c3d0296251f1d5a96ebde811dbfd4a914fe.
Reason for revert: the assumption...
a0c84c907cceabd410a7c9457eb1407609892604 authored almost 5 years ago by Filippo Valsorda <[email protected]>
ReverseProxy automatically sets the X-Forwarded-For header, if the request
already contains a X-...
Fixes #35620
Change-Id: I71bc56ec7a7507d14b4f013177b4b816bb1a2094
Reviewed-on: https://go-revie...
Previously, we accidentally wrote the Proxy-Authorization header for
the initial CONNECT request...
Change-Id: Ib37db42c7f1fd6aa55f70fd2d65d56bb2ae6d26a
Reviewed-on: https://go-review.googlesource...
The use of a timeout in this test caused it to be flaky: if the
timeout occurred before the conn...
This approach attempts to ensure that the log for each connection is
complete before the next se...
Fixes #36070
Change-Id: I99742aa153202436d802634c9e019a14b9ef9185
Reviewed-on: https://go-revie...
Fixes #28012
Change-Id: I711ebaabf63194e3d2c608d829da49c51a294d74
Reviewed-on: https://go-revie...
Uses 2 channels to synchronize that test, because
relying on sleeps creates flaky behavior, thus...
Updates bundled http2 to x/net git rev ef20fe5d7 for:
http2: make Transport.IdleConnTimeout ...
855df7d3eeae8c0195594725430c2f2d0dbd4895 authored almost 5 years ago by Brad Fitzpatrick <[email protected]>
Before May 2018, I mistakenly thought the _suffix naming convention¹
used by examples also appli...
Both laptops closing their lids and cloud container runtimes
suspending VMs both faced the probl...
Fixes #35750
Change-Id: I65d38cfc5ddd66131777e104c269cc3559b2471d
GitHub-Last-Rev: 953fdfd49b2b...
Change-Id: I5b909df0fd048cd66c5a27fca1b06466d3bcaac7
GitHub-Last-Rev: 778c5d21311abee09a5fbda2e4...
Not a fix, but will give us more info when it flakes again.
Updates #35113
Change-Id: I2f90c24...
3429c391774917a89deae7672abd5f1da47edb75 authored almost 5 years ago by Brad Fitzpatrick <[email protected]>Fixes #21526
Change-Id: I2f8215cd671641cddfa8499f8a8c0130db93dbc6
Reviewed-on: https://go-revie...
Fixes #35423
Change-Id: Idb254d6a2c4b147d20e290411e4380df5cdcb306
Reviewed-on: https://go-revie...
Support "gzip" aka "x-gzip" as a transfer-encoding for
requests and responses as per RFC 7230 Se...
Use names to better communicate when a test case fails.
Change-Id: Id882783cb5e444b705443fbcdf6...
4aa33dd7562d99e8c5f232a952d8d1e65800a3b0 authored about 5 years ago by David Ndungu <[email protected]>
Fixes #35082
Updates #6853
Change-Id: I4eeb0e15f534cff57fefb6039cd33fadf15b946e
Reviewed-on: ht...
The js.Value struct now contains a pointer, so a finalizer can
determine if the value is not ref...
Current implementation of httputil.DumpRequestOut
incorrectly resets the Request.Body prematurel...
Goroutines clean up takes longer when using deprecated CloseNotifier.
Fixes #35122
Change-Id: ...
594a9f098d665599238559b558b86c137634d881 authored about 5 years ago by Constantin Konstantinidis <[email protected]>
The current implementation performs a plain map lookup,
but other header methods canonicalize he...
The connection count must only be decremented if the persistent
connection was also removed.
Fi...
f4dbd0c4b984de95b577c40308ba89af1ba830c0 authored about 5 years ago by Michael Fraenkel <[email protected]>
Fixes #35161
Updates #34439
Change-Id: I978534cbb8b9fb32c115dba0066cf099c61d8ee9
GitHub-Last-Re...
bradfitz is actively thinking about a proper fix.
In the meantime, skip the test to suss out any...
Fixes #34978
Change-Id: I3baf1392ba7366ae6628889c47c343ef702ec438
Reviewed-on: https://go-revie...
Commit 8f6d68eb (CL 37328) changed the code of sanitizeCookieValue without updating its descript...
7737a79956ee6a98f486e07b2662352221c9da24 authored about 5 years ago by Brave Cow <[email protected]>
The parseURL variable was introduced in CL 49930 in order to work
around the fact that the name ...
Change-Id: I224db88f3809001802e004077ce856f0e3347c67
Reviewed-on: https://go-review.googlesource...
Makes TimeoutHandler consistent with other handlers, by
logging any spurious WriteHeader calls.
...
Fixes #35015
Change-Id: I7a1ed9cfa219ad88014aad033e3a01f9dffc3eb3
Reviewed-on: https://go-revie...
Updates #35015
Change-Id: Ibfe8f72ed3887ca88ce9c1d8a29dacda72f3fe17
GitHub-Last-Rev: 4bfc56e716...
Adds a knob EnableHTTP2, that enables an unstarted
Server and its respective client to speak HTT...
Fixes #34799
Change-Id: I134b2717fa90c8955902e7eeaaf8510dcc28340e
Reviewed-on: https://go-revie...
We now only support ALPN.
Updates #28362
Change-Id: I8d9461c7a91315ee92e712448d0bf5c4070d09ae
...
The comment in both functions referred to the wrong header and I made
the checks easier to read....
Fixes the docs to correctly match the implementation
and also adds a test locking-in the behavio...
For Go 1.13 we introduced Header.Clone and it returns
nil if a nil Header is cloned. Unfortunate...
Updates x/net/http2 to git rev d66e71096ffb9f08f36d9aefcae80ce319de6d68
http2: end stream e...
e942cea4814d2c038af464b5373000b0a8231a3a authored about 5 years ago by Emmanuel T Odeke <[email protected]>Fixes #31753
Change-Id: I32ec5906ef6714e19b094f67cb0f10a211a9c500
Reviewed-on: https://go-revie...
Change-Id: Icbf97d640fb26eed646f9e85c1f1c94b1469ca4f
Reviewed-on: https://go-review.googlesource...
Fixes #34640
Change-Id: I4a6c9414fe369cd5e9915472331c4bd8a21d8b0e
Reviewed-on: https://go-revie...
TestEnvOverride sets PATH to /wibble before executing a CGI.
So customized Perl that is starting...
Change applies to sendFile.
This is already done for sendContent.
Change-Id: If43d9ab99e6e66a13...
d080c3651eccfdf138ccc12164fecef604cf45ba authored about 5 years ago by Nuno Cruces <[email protected]>
Removes TestTimeoutHandlerAndFlusher due to flakes on
one of the builders due to timing issues.
...
Also added a test to ensure that any interactions
between TimeoutHandler and Flusher result in t...
RFC 7230 is clear about headers with a space before the colon, like
X-Answer : 42
being invali...
7b4a7a14abe6f99f0d3a3b9fe518b7a43dc9f14c authored about 5 years ago by Filippo Valsorda <[email protected]>Fixes #31657
Change-Id: I85e9595d3ea30d410f1f4b787925a6879a72bdf2
Reviewed-on: https://go-revie...
When the http2 transport returns a NoCachedConnError, the connection
must be removed from the id...
CL 140357 caused HTTP/2 connections to be put in the idle pool, but
failed to properly guard the...
Use the following (suboptimal) script to obtain a list of possible
typos:
#!/usr/bin/env sh
...
26577b330df8caf9bec472586e9b18c8885845e4 authored about 5 years ago by Ainar Garipov <[email protected]>This results in a performance boost:
name old time/op new time/op delta
CopyValu...
Some were never used, and some haven't been used for years.
One exception is net/http's readerA...
d714bcb623656f459d5ca56994475782cccb997b authored about 5 years ago by Daniel Martí <[email protected]>Fixes #33385
Change-Id: I497ccd868d408a9c5648c72aa5ce41221368daf4
GitHub-Last-Rev: 3bf483808e10...
The URL port is already checked in net/url, so we can remove the redundant validation in net/htt...
58d876d00120a96cb049cbe26d6988de6d0463d0 authored about 5 years ago by Derek Phan <[email protected]>
Updates #30165
Updates #31622
Change-Id: I7a4b91aa7c5c3af8c0b1273cbb42046feddf7d78
Reviewed-on:...
The net/url error in question now quotes the URL, so update the expected
output string.
While a...
3d9e5acc646eab497cf827f96471a02a17b3bb15 authored about 5 years ago by Daniel Martí <[email protected]>
Current implementation doesn't always make it obvious what the exact
problem with the URL is, so...
When an invalid URL was passed to DumpRequestOut, it would directly return
without gracefully sh...
Fixes golang/go#31249
Change-Id: I3280f8ab170ed31d4efb71106533e016d430d44c
Reviewed-on: https:/...
I'm trying to keep the code changes minimal for backporting to Go 1.13,
so it is still possible ...
HTTP is an initialism, not an acronym, where you pronounce each letter as a
word. It's "an H", n...
The doc comments of both ServerContextKey and LocalAddrContextKey both suggest that context.With...
c564c84dc4fe902d29cce3c4c802fd5bb3b4fc22 authored about 5 years ago by Kevin Gillette <[email protected]>
Update golang.org/x/net to v0.0.0-20190813141303-74dc4d7220e7 to import
the following security f...
As of Go 1.13rc1, TimeoutHandler supports the Flusher and Pusher interfaces and
this change corr...
When Host is not valid per RFC 3986, the behavior of Hostname and Port
was wildly unpredictable,...
The bundle included changes from a commit after the one referred to by
the go.mod, probably due ...
Fixes #33453.
Change-Id: If0aa48f953633690884ddcff033b3be6d1d66443
Reviewed-on: https://go-revi...
It is unclear whether the current definition of os.IsTimeout is
desirable or not. Drop ErrTimeou...