Commit Graph

737 Commits

Author SHA1 Message Date
Aliaksandr Valialkin 31a9d3461e Issue #61: test request with multipart/form-data body containing file value 2016-03-01 17:13:49 +02:00
Aliaksandr Valialkin d1768755c9 gofmt 2016-03-01 17:12:39 +02:00
Aliaksandr Valialkin 3f1619c5f9 Updated LICENSE 2016-03-01 15:41:31 +02:00
Aliaksandr Valialkin 2a92d3c96e Reduced concurrency and increased wait time in TestPipeConnsCloseWhileReadWriteConcurrent, so it may pass on slow CPUs and/or with -race flag 2016-03-01 13:57:24 +02:00
Aliaksandr Valialkin 1e8901b798 fasthttputil: added concurrent test for closing PipeConns while reading/writing from it 2016-03-01 13:53:57 +02:00
Aliaksandr Valialkin 69793f7224 Fixed data races in PipeConns 2016-03-01 02:03:26 +02:00
Aliaksandr Valialkin 3546c31c2b Issue #60: skip body copying in DoTimeout. This should improve DoTimeout performance when dealing with big request and/or response bodies 2016-03-01 01:13:50 +02:00
Aliaksandr Valialkin a19a196595 Use DoTimeout instead of GetTimeout in 'big response' benchmark 2016-03-01 01:11:20 +02:00
Aliaksandr Valialkin a956ac660d Set timeout when benchmarking big responses 2016-03-01 00:42:24 +02:00
Aliaksandr Valialkin 70316d0535 Issue #60: give up to find an optimal strategy for body buffers' re-use 2016-02-29 18:35:15 +02:00
Aliaksandr Valialkin 8985a565b2 Issue #60: throughput tuning: re-use body buffers if their size is smaller than 8Kb 2016-02-29 18:11:17 +02:00
Aliaksandr Valialkin fcfda9f312 Issue #60: increased client and server throughput when working with big bodies 2016-02-29 17:31:47 +02:00
Aliaksandr Valialkin 203ba5897c Issue #60: added benchmarks for big response bodies 2016-02-29 17:28:41 +02:00
Aliaksandr Valialkin 3e83cf1c27 Properly handle missing file error in ServeFile 2016-02-29 14:45:42 +02:00
Aliaksandr Valialkin 68c6a4f496 Added ServeFileBytes* and RequestCtx.SendFileBytes* helper functions 2016-02-29 14:42:55 +02:00
Aliaksandr Valialkin bfefb9adf3 Added a link to questions filed in issues 2016-02-29 14:05:23 +02:00
Aliaksandr Valialkin e252d37e21 Issue #57: Added DisableHeaderNamesNormalizing config option to Client and HostClient to be consistent with the corresponding option in Server 2016-02-29 13:11:32 +02:00
Aliaksandr Valialkin 05ab4737e9 README prettifying: added GoDoc badge, added links to benchmarks 2016-02-26 17:05:51 +02:00
Aliaksandr Valialkin ad8f9d1f6f Issue #57: Exported AppendNormalizedHeaderKey 2016-02-25 21:28:13 +02:00
Aliaksandr Valialkin dd6954f4b2 Issue #57: Server: added ability to disable header names' normalizing 2016-02-25 14:00:04 +02:00
Aliaksandr Valialkin c1437a71e6 Shuffled Request and Response members in order to reduce object sizes 2016-02-25 13:57:21 +02:00
Aliaksandr Valialkin f3d9e7ae9b golint fix 2016-02-25 13:30:25 +02:00
Aliaksandr Valialkin da0d6f1ea7 Mention fasthttp-routing in README - an ozzo-routing fork for fasthttp. See https://github.com/go-ozzo/ozzo-routing/issues/14 for details. 2016-02-25 10:26:46 +02:00
Aliaksandr Valialkin 108d002365 Added tests for Server.ReduceMemoryUsage flag 2016-02-24 15:45:56 +02:00
Aliaksandr Valialkin f3dd0534ae Clarified documentation for Server configs 2016-02-23 11:28:48 +02:00
Aliaksandr Valialkin 115b98672e Make sure that the server always closes connection after HTTP/1.0 request without 'Connection: keep-alive' header 2016-02-22 23:00:36 +02:00
Aliaksandr Valialkin b8f996c13f Added more tests for keep-alive and non-keep-alive connections during HTTP/1.0 requests 2016-02-22 22:51:12 +02:00
Aliaksandr Valialkin 76fad231c2 Merge pull request #56 from sschepens/master
Added BodyInflate and WriteInflate to match BodyGunzip and WriteGunzip
2016-02-22 20:02:28 +02:00
Sebastian Schepens 889c65bae6 Added BodyInflate and WriteInflate to match BodyGunzip and WriteGunzip 2016-02-22 14:36:58 -03:00
Aliaksandr Valialkin 7583b9b2ac client: use exponential backoff algorithm for sleeping between unsuccessful attempts to obtain free connection to the server. This should reduce CPU usage 2016-02-22 19:05:46 +02:00
Aliaksandr Valialkin 4a29aeb2bd Added tests for HTTP/1.0 requests regarding 'Connection: close' handling 2016-02-22 18:18:50 +02:00
Aliaksandr Valialkin 21a70cc5b8 reduced the time required to run tests with race detector enabled 2016-02-21 13:34:55 +02:00
Aliaksandr Valialkin b98beaa40f Added RequestURI helper to Request 2016-02-21 13:22:13 +02:00
Aliaksandr Valialkin 58e4dea85d Properly copy query arguments in URI.CopyTo 2016-02-19 20:17:37 +02:00
Aliaksandr Valialkin be49d3027a Allow updating request's RequestURI and Host header via Request.URI() 2016-02-19 18:53:13 +02:00
Aliaksandr Valialkin 0ab0d45a50 Eliminated two memory allocations when client follows redirect 2016-02-19 17:27:47 +02:00
Aliaksandr Valialkin a3e1aeb8b6 eliminated memory allocation in RequestCtx.Redirect* 2016-02-19 17:20:27 +02:00
Aliaksandr Valialkin 6489c32a90 Added AcquireCookie / ReleaseCookie helpers 2016-02-19 13:03:35 +02:00
Aliaksandr Valialkin 5a26dcce53 Added AcquireArgs and ReleaseArgs helper functions 2016-02-19 12:53:39 +02:00
Aliaksandr Valialkin ed7ca4c631 Added LogAllErrors config parameter to Server, which allows logging the most frequent errors such as 'connection reset by peer', 'broken pipe' and 'i/o timeout'. By default such errors are suppressed 2016-02-19 12:01:27 +02:00
Aliaksandr Valialkin 14b2ff3d2b Issue #14: Added BodyGunzip helper method to Request to be consistent with Response 2016-02-18 17:01:05 +02:00
Aliaksandr Valialkin d7f433999f Document that it is safe re-using []byte buffers after SetBody and AppendBody function calls 2016-02-18 16:49:23 +02:00
Aliaksandr Valialkin d95ef5ab6c Added a test for bufferStartEnd 2016-02-18 16:21:04 +02:00
Aliaksandr Valialkin 714b45e4c7 Print only the first 200 and the last 200 bytes of the buffer on error during headers' reading 2016-02-18 15:57:34 +02:00
Aliaksandr Valialkin 320182f734 Return more clear error message when headers don't fit read buffer size 2016-02-18 15:33:30 +02:00
Aliaksandr Valialkin 72ca29fa75 Use go 1.6 in travis 2016-02-18 14:19:26 +02:00
Aliaksandr Valialkin ace291546f Document that Server.ReadBufferSize may be increased for serving big requests 2016-02-18 12:46:37 +02:00
Aliaksandr Valialkin 7cde0cf1fa Reduce memory waste and fragmentation by limiting the maximum request and response body size which may be re-used 2016-02-18 12:23:11 +02:00
Aliaksandr Valialkin e1488d9349 Consistency fix: refer to URI as u instead of x in URI methods 2016-02-17 12:15:48 +02:00
Aliaksandr Valialkin dcd687ba8b Added AcquireURI and ReleaseURI 2016-02-17 12:10:53 +02:00