In the http.Client that you use, specify your own Transport where you
specify your own DialContext function which Dials first and then calls
SetNoDelay on the connection before returning.

Janne Snabb
sn...@epipe.com

On 2016-10-08 11:25, hay wrote:
> Hi,
> 
> I'm using http.Client to make restful calls, turning off nagle's
> algorithm will help as messages are very short and response time needs
> to be fast. Is there a way to check or/and set to turn off
> 'NoDelay'/Nagle's algorithm for http.Client (
> https://golang.org/pkg/net/http/#Client ) ?
> 
> Regards and thanks in advance,
> 
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to golang-nuts+unsubscr...@googlegroups.com
> <mailto:golang-nuts+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to