[go-nuts] Is there a way to limit number or requests on a KeepAlive connection on net/http server?

2020-01-12 Thread zohaib . hassan
Hey folks, I've been digging around for a while but could not find anything; is there something with builtin HTTP server that I can do to limit the maximum number of requests allowed with KeepAlive connection? I found fast http provides an option *MaxRequestsPerConn* to do so, https://github.

[go-nuts] Can't explain Golang benchmarks

2017-07-16 Thread zohaib . hassan
I have been spending my day over implementing an efficient PubSub system. I had implemented one before using channels, and I wanted to benchmark that against sync.Cond. Here is the quick and dirty test that I put together https://gist.github.com/maxpert/f3c405c516ba2d4c8aa8b0695e0e054e. Now my