diff options
author | Erik Dubbelboer <erik@dubbelboer.com> | 2018-10-04 21:49:55 +0800 |
---|---|---|
committer | Erik Dubbelboer <erik@dubbelboer.com> | 2018-10-05 16:35:59 +0800 |
commit | 8dfc881b9ec613747a4b7bb8ebe7504b3a18a409 (patch) | |
tree | 8911acc20e4b909d7295e6f4e1e61475afd42860 /workerpool.go | |
parent | Add support for named profiles like heap, goroutine, threadcreate, allocs, bl... (diff) | |
download | fasthttp-8dfc881b9ec613747a4b7bb8ebe7504b3a18a409.tar.gz fasthttp-8dfc881b9ec613747a4b7bb8ebe7504b3a18a409.tar.bz2 fasthttp-8dfc881b9ec613747a4b7bb8ebe7504b3a18a409.zip |
Added Server.nextProtos
This implementation allows user to handle crypto/tls.Config.NextProtos to use their own handlers for the negotiated TLS protos like HTTP/2.
Workerpool where changed to adapt WorkerFunc to another conns server with ServeConn type and contains the Server structure which creates to check configured protos.
Diffstat (limited to 'workerpool.go')
-rw-r--r-- | workerpool.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/workerpool.go b/workerpool.go index 0dd581a..bfd297c 100644 --- a/workerpool.go +++ b/workerpool.go @@ -16,7 +16,7 @@ import ( type workerPool struct { // Function for serving server connections. // It must leave c unclosed. - WorkerFunc func(c net.Conn) error + WorkerFunc ServeHandler MaxWorkersCount int |