Aliaksandr Valialkin
3e1cb31dcd
Added SwapBody to Request and Response for zero-copy body pass between Request and Response objects
2016-09-12 13:42:59 +03:00
Aliaksandr Valialkin
0503f9d38c
reuseport: enable TCP_FASTOPEN
2016-09-06 16:19:29 +03:00
Aliaksandr Valialkin
a0f498b65b
reuseport: reduce the number of context switches incurred the listener via TCP_DEFER_ACCEPT
2016-08-29 18:38:03 +03:00
Aliaksandr Valialkin
834fb48f10
Immediately write compressed response data to the connection after the user flushes the data from StreamWriter
2016-08-18 13:03:57 +03:00
Nicolas Bazire
9f7999be97
fix DoDeadline side effect when no free conn ( #145 )
2016-08-17 20:24:33 +03:00
Andrew Pogrebnoy
c6104e0614
Fix Go Report badge in README ( #143 )
2016-08-17 20:22:20 +03:00
Aliaksandr Valialkin
2662f2e1f4
Allow redirecting to urls without scheme, i.e. //google.com/foo.bar
2016-08-17 18:55:32 +03:00
Aliaksandr Valialkin
5210f60181
Detect overriden TLS connections in RequestCtx.IsTLS and RequestCtx.TLSConnectionState
2016-08-17 18:01:59 +03:00
Aliaksandr Valialkin
c665919a09
Fixed a race when reading data from pipe. This fixes flacky tests involving fasthttputil.PipeConns: TestResponseGzipStream and TestWorkerPoolMaxWorkersCountSerial
2016-08-17 17:42:10 +03:00
Aliaksandr Valialkin
8e21bc7f60
do not compress response body again if Content-Encoding is set
2016-08-17 14:50:58 +03:00
Aliaksandr Valialkin
d055141f64
Propagate 'https' scheme to request URI for TLS connections
2016-08-17 14:01:35 +03:00
Aliaksandr Valialkin
28338bdad8
run travis tests on go 1.7
2016-08-17 13:56:33 +03:00
Aliaksandr Valialkin
45697fe30a
Issue #141 : do not urlencode cookies
...
https://tools.ietf.org/html/rfc6265 says nothing about cookies encoding.
2016-07-18 18:25:03 +03:00
Sarjono Mukti Aji
8edddf21b9
add missing http status codes ( #140 )
2016-07-18 17:48:36 +03:00
Aliaksandr Valialkin
45915c69f6
Optimization: recycle request and response body buffers only if Server.ReduceMemoryUsage is set
2016-07-18 17:46:52 +03:00
Aliaksandr Valialkin
a2cc660e59
optimization: removed slow defer from worker pool handler and hijack handler
2016-07-18 17:23:38 +03:00
Aliaksandr Valialkin
881ac52b00
Added support for multiple concurrent connections to server in PipelineClient
2016-07-16 17:36:32 +03:00
Aliaksandr Valialkin
f4ebbdd48b
Removed incorrect statement from PipelineClient.Do docs
2016-07-15 14:41:07 +03:00
Aliaksandr Valialkin
886e541160
Removed 'recover-from-panic' band-aids.
...
All the panics must be handled by the user code.
2016-07-12 12:30:38 +03:00
Aliaksandr Valialkin
d1dd56c016
Issue #131 : document redirects' following for client functions
2016-07-12 10:40:04 +03:00
Victor Gaydov
a0fe3404bf
Add test for fsSmallFileReader.WriteTo and fix bug ( #128 )
...
The bug raises when io.Writer passed to fsSmallFileReader.WriteTo
doesn't support ReadFrom interface.
2016-07-12 09:42:39 +03:00
Gerasimos Maropoulos
006fac3cba
Implement VisitUserValues - https://github.com/valyala/fasthttp/issues/126 ( #129 )
2016-07-12 09:40:24 +03:00
Benjamin Botwin
141ac46e4c
Fixed a few typos in README.md ( #134 )
2016-07-12 09:39:00 +03:00
Aliaksandr Valialkin
5c2b6256da
A follow-up test for the PR #135
2016-07-12 09:37:39 +03:00
Clayton Anderson
1909d6a025
Fixed bug with quoted multipart form boundaries ( #135 )
2016-07-12 09:33:29 +03:00
Victor Gaydov
97d96cb3b7
Handle TransferEncoding in fasthttpadaptor ( #124 )
...
When incoming http.Request is constructed, "Transfer-Encoding" header
is removed, and http.Request.TransferEncoding is set instead.
This behaviour is now emulated in fasthttpadaptor.
2016-06-29 17:36:40 +03:00
Aliaksandr Valialkin
e4db3cb560
Security fix: limit request body size by default
...
This mitigates possible DoS-attacks based on sending very BIG request bodies
to the server with default settings.
Thanks to @MichaelMonashev for pointing to this attack.
2016-06-28 20:54:42 +03:00
Aliaksandr Valialkin
778f83ed89
Discourage using ReleaseBody, since now bytebufferpool should properly handle the case mentioned in #102
2016-06-27 18:26:56 +03:00
Aliaksandr Valialkin
15c8282c3f
typo fix
2016-06-27 17:52:45 +03:00
Aliaksandr Valialkin
80e08dc9ef
Cross-reference Set* with Add* methods on RequestHeader and ResponseHeader
2016-06-27 17:48:32 +03:00
Justin Seely
3d3774799e
Enable IPv6 for reuseport ( #122 )
2016-06-24 17:29:10 +03:00
Aliaksandr Valialkin
efa9cb909e
Issue #121 : Added a test to make sure equal and space chars may be used inside cookie values
2016-06-24 17:22:27 +03:00
Aliaksandr Valialkin
a35f26a704
Deprecate ByteBuffer in favor of bytebufferpool
2016-06-24 16:48:38 +03:00
Aliaksandr Valialkin
00868f2226
Use separate pools for request and response bodies.
...
This should reduce potential memory waste related to byte buffers' pool usage.
2016-06-24 15:15:59 +03:00
Aliaksandr Valialkin
775eb9d43f
Update according to bytebufferpool new API
2016-06-24 14:59:39 +03:00
Aliaksandr Valialkin
3148999d1e
Updated bytebufferpool calls according to the latest modifications
2016-06-23 11:08:30 +03:00
Aliaksandr Valialkin
8ca66d3de8
Use github.com/valyala/bytebufferpool, which should protect against memory fragmentation in the pool of byte buffers like mentioned in the PR #102
2016-06-22 20:32:00 +03:00
kayteh
29a4c4d6c1
Fix small typo in net/http -> fasthttp example ( #120 )
2016-06-19 00:28:03 +03:00
Aliaksandr Valialkin
d42167fd04
Set response Server header to Server.Name if it is empty. This properly handles #118
v20160617
2016-06-17 13:13:04 +03:00
Aliaksandr Valialkin
83a24c301b
Issue #114 : added SetHost and Host helper methods to Request
2016-06-15 20:32:54 +03:00
Anton Tyurin
33ed259db7
reuseport: set FD_CLOSEEXEC for the sockets ( #117 )
...
Signed-off-by: Anton Tiurin <noxiouz@yandex.ru >
2016-06-13 18:00:33 +03:00
Alexander Shchepetilnikov
e2fcfbaea5
Fix typo ( #115 )
2016-06-13 17:58:03 +03:00
Aliaksandr Valialkin
8db7d05839
Close base response body streams when wrapping them into gzip or deflate stream writers
2016-06-10 20:19:15 +03:00
Aliaksandr Valialkin
80af8b2b97
Simplified PipeConns - now they properly handle the case when reader side is closed
2016-06-10 19:56:11 +03:00
Aliaksandr Valialkin
7c6a3278ad
Improved testPipeConnsCloseWhileReadWrite
2016-06-10 18:24:42 +03:00
Aliaksandr Valialkin
312f9e5633
move inmemory_listener_timing_test to *_test package, so it could import fasthttp without cycle
2016-06-10 17:48:06 +03:00
Aliaksandr Valialkin
ce9d1d2224
Use fasthttp.PipeConns instead of io.Pipe in StreamReader
...
This improves StreamReader performance by more than 2x.
2016-06-10 15:31:05 +03:00
Aliaksandr Valialkin
8f05edbec9
typo fix
2016-06-08 16:03:51 +03:00
Aliaksandr Valialkin
efbb037c40
Added RequestCtx.Redirect tests, which cover cases mentioned in https://github.com/kataras/iris/issues/173
2016-06-07 13:30:42 +03:00
Aliaksandr Valialkin
033bb40f06
Properly handle hashes and single dots in URI.Update (see https://github.com/kataras/iris/issues/173 )
2016-06-07 13:30:03 +03:00