Commit Graph

649 Commits

Author SHA1 Message Date
Aliaksandr Valialkin f340a2920f Moved expvarhandler from fasthttputil to fasthttp root 2016-02-05 18:13:16 +02:00
Aliaksandr Valialkin 8ccfb7fc1c Added docs to expvar 2016-02-05 18:10:23 +02:00
Aliaksandr Valialkin 5dcb652364 Moved ExpvarHandler to a dedicated package in order to break import cycle 2016-02-05 18:06:54 +02:00
Aliaksandr Valialkin 72a8861efd mention fasthttputil in README 2016-02-05 17:48:43 +02:00
Aliaksandr Valialkin ec922ac0b8 typo fix 2016-02-05 17:46:49 +02:00
Aliaksandr Valialkin 700a838f12 Added expvar stats to example fileserver 2016-02-05 17:40:44 +02:00
Aliaksandr Valialkin a66138e80f added ability to filter ExpvarHandler output with regexp 2016-02-05 17:39:32 +02:00
Aliaksandr Valialkin e05941507f fasthttputil: added ExpvarHandler for serving variables exported via standard expvar package 2016-02-05 16:42:35 +02:00
Aliaksandr Valialkin 6723a2a0fc fasthttputil: renamed files: pipe -> pipeconns 2016-02-05 16:41:32 +02:00
Aliaksandr Valialkin 8c32cc0674 Fixed golint warnings 2016-02-05 13:53:53 +02:00
Aliaksandr Valialkin a2e6d65e9d Issue #15: return more clear error if the server forgets sending 'Connection: close' response header before closing the connection 2016-02-05 13:45:46 +02:00
Aliaksandr Valialkin 0458fee5cd Issue #15: make sure that io.EOF isn't returned on incomplete request/response 2016-02-05 13:22:03 +02:00
Aliaksandr Valialkin 52d4b7ca38 Issue #15: document that io.EOF is returned from Read* calls on (Request|Response)(Header)? only if the reader is closed before the first byte read 2016-02-05 13:14:36 +02:00
Aliaksandr Valialkin 913d03cc84 Do not allocate memory when constructing path inside VHostPathRewriter 2016-02-05 13:00:52 +02:00
Aliaksandr Valialkin eafcb74ce5 Call Close on user values stored via RequestCtx.SetUserValue if these values implement io.Closer 2016-02-05 12:50:58 +02:00
Aliaksandr Valialkin df213349e2 client: use TLS session cache by default 2016-02-04 20:24:00 +02:00
Aliaksandr Valialkin 08aecdd0f4 fasthttputil: pre-allocate memory in newly created byteBuffer 2016-02-04 19:48:52 +02:00
Aliaksandr Valialkin 26f2cab187 fasthttputil: pipe errors cleanup 2016-02-04 19:42:42 +02:00
Aliaksandr Valialkin 55b89a9a6a fasthttputil: properly release pipeChan 2016-02-04 18:56:58 +02:00
Aliaksandr Valialkin e0cd149b5e Enabled virtual hosting support in example fileserver 2016-02-04 17:16:43 +02:00
Aliaksandr Valialkin 5dff324211 FS: verify that the path doesn't contain '/../' only if PathRewriter is used 2016-02-04 16:44:07 +02:00
Aliaksandr Valialkin f36c218b13 FS: make sure that the path returned from PathRewriteFunc doesn't contain '/../' due to security reasons 2016-02-04 16:38:24 +02:00
Aliaksandr Valialkin a9dcd0efd0 fasthttputil: added pipe tests 2016-02-04 16:29:26 +02:00
Aliaksandr Valialkin 7e6d951c69 fasthttputil: export PipeConns 2016-02-04 16:00:58 +02:00
Aliaksandr Valialkin 61b0c5e95f InmemoryListener: added timing tests 2016-02-04 15:24:15 +02:00
Aliaksandr Valialkin c86cfcea15 InmemoryListener: fixed races in pipe implementation 2016-02-04 15:22:44 +02:00
Aliaksandr Valialkin 8f1c8f7bbe InmemoryListener: re-use byteBuffer channels 2016-02-04 14:30:09 +02:00
Aliaksandr Valialkin 484b819453 InmemoryListener: free remaining byte buffers after closing 2016-02-03 19:27:12 +02:00
Aliaksandr Valialkin 271c9c34c3 InmemoryListener: close only write end of the connection 2016-02-03 19:10:24 +02:00
Aliaksandr Valialkin a8d8ecce47 InmemoryListener: allow multiple Write() calls without Read() calls 2016-02-03 19:03:42 +02:00
Aliaksandr Valialkin 2b4309d53d Added global ServeTLS function to be consistent with Server.ServeTLS 2016-02-03 16:21:42 +02:00
Aliaksandr Valialkin 33e5464e41 fs: allow multiple calls to FS.NewRequestHandler() 2016-02-03 11:07:45 +02:00
Aliaksandr Valialkin e62325dfac Merge pull request #44 from Freeaqingme/master
Readme: Suggest use of Go 1.6 for performance
2016-02-01 16:16:44 +03:00
Aliaksandr Valialkin c045b92c3c formatting fix 2016-02-01 15:14:28 +02:00
Aliaksandr Valialkin 2096fea52d Issue #43: explained why fasthttp prefers returning []byte instead of string 2016-02-01 15:13:26 +02:00
Dolf Schimmel (Freeaqingme) c749517cdc Readme: Suggest use of Go 1.6 for performance 2016-01-30 15:58:00 +01:00
Aliaksandr Valialkin 9f42f3fe8a tcpdialer: limit the number of concurrent dialers 2016-01-29 13:41:07 +02:00
Aliaksandr Valialkin c450104658 Client: made more clear timeout handling 2016-01-29 13:38:56 +02:00
Aliaksandr Valialkin 359b3a1dd8 Client: fixed a bug with improper dial timeout calculation on dial errors 2016-01-28 22:12:06 +02:00
Aliaksandr Valialkin 601ce0528c Client: increased default dial timeout in order to minimize the number of goroutines blocked in Dial 2016-01-28 21:24:38 +02:00
Aliaksandr Valialkin a9a9b08a84 Do not pollute server error log with 'i/o timeout' errors 2016-01-28 12:03:07 +02:00
Aliaksandr Valialkin 2af858a7da Follow-up for pull request #42: properly initialize Request.URL field 2016-01-28 11:31:53 +02:00
Aliaksandr Valialkin 4bc7f021b2 Merge pull request #42 from zviadm/master
fix fasthttpadaptor to work with http.ServeMux in Go 1.5
2016-01-28 11:24:48 +02:00
Aliaksandr Valialkin 85122869cf Removed misleading comment on ServeConn related to Hijack - this implementation detail is irrelevant to ServeConn caller 2016-01-28 11:21:20 +02:00
Zviad Metreveli 8b7405a861 add missing import 2016-01-27 19:07:56 -05:00
Zviad Metreveli 4fd339e8c5 fix fasthttpadaptor to work with http.ServeMux in Go 1.5 2016-01-27 19:02:42 -05:00
Aliaksandr Valialkin ee9a3ee319 Server: make sure that net.Listener returns nil conn on non-nil error 2016-01-27 17:21:38 +02:00
Aliaksandr Valialkin f8c0d95e57 Issue #40: added io.WriterTo implementation to Request and Response 2016-01-21 12:24:51 +02:00
Aliaksandr Valialkin b127e96399 FS: reset response body on HEAD request 2016-01-20 13:27:22 +02:00
Aliaksandr Valialkin 52ddf98cfd Fixed golint warnings 2016-01-19 12:43:23 +02:00