Commit Graph

630 Commits

Author SHA1 Message Date
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
Aliaksandr Valialkin a208149ac4 FS optimization: do not read file contents on HEAD requests 2016-01-18 20:40:43 +02:00
Aliaksandr Valialkin fe88aefe6e Fixed a typo 2016-01-18 15:37:41 +02:00
Aliaksandr Valialkin 1f7553ed62 Added DialTimeout and DialDualStackTimeout functions 2016-01-18 14:11:19 +02:00
Aliaksandr Valialkin 4985a4c956 Improved ServeFile* tests 2016-01-18 07:23:48 +02:00
Aliaksandr Valialkin 764a74e2ec Added ServeFile and ServeFileUncompressed to be on par with net/http 2016-01-17 23:12:38 +02:00
Aliaksandr Valialkin 7320fe3bd7 Properly update Request.URI() after Request.SetRequestURI() call 2016-01-17 23:09:11 +02:00
Aliaksandr Valialkin 548a76235d Removed accidentally copy-n-pasted misleading documentation line from InmemoryListener.Close. Thanks to @Annonomus-Penguin for catching this. 2016-01-17 01:01:35 +02:00
Aliaksandr Valialkin 81b5321d14 Removed misleading ConnectionCloseReal method from RequestHeader 2016-01-17 00:43:34 +02:00
Aliaksandr Valialkin 224aecb81d Added explicit test for keepalive and non-keepalive HTTP/1.0 response 2016-01-17 00:30:13 +02:00
Aliaksandr Valialkin e3369ec00b Dial all the resolved TCP addresses in round-robin manner until the connection is established 2016-01-15 19:41:09 +02:00
Aliaksandr Valialkin 576ba8868b Return immediately on ErrDialTimeout when dialing HostClient hosts 2016-01-15 19:12:09 +02:00
Aliaksandr Valialkin a5f4f2e007 Dial all available addresses in HostClient.Addrs before giving up 2016-01-15 19:08:40 +02:00
Aliaksandr Valialkin a1ea9c0808 Limit the maximum time for establishing TCP connection in Dial and DialDualStack 2016-01-15 19:07:33 +02:00
Aliaksandr Valialkin c78eb83578 Client: re-send idempotent requests after more unsuccessful cases 2016-01-15 18:30:13 +02:00
Aliaksandr Valialkin b0ded12af6 Do not create new connection on idempotent requests' retry, since it has little sense 2016-01-15 16:56:30 +02:00
Aliaksandr Valialkin 5b39086815 Merge pull request #38 from sschepens/master
Don't assume Content-Encoding: identity when request is 1xx, 204 or 304
2016-01-14 13:00:43 +02:00
Aliaksandr Valialkin 485098e5dc Exported AppendQuotedArg 2016-01-13 18:17:03 +02:00
Aliaksandr Valialkin 37ad7e0e32 typo fix 2016-01-13 18:03:02 +02:00
Aliaksandr Valialkin 92b182c4b1 Added ability to limit the maximum connection duration in HostClient 2016-01-13 14:06:05 +02:00