Re: [go-nuts] Turning off nagle's algorithm for http.Client

2016-10-10 Thread hay
I stand corrected, it is there in "newTCPConn" function. On Monday, October 10, 2016 at 10:16:27 AM UTC+4, Sokolov Yura wrote: > > Read carefully, and you will not need to do redundant work and write > redundant code. > > It is really here: > https://github.com/golang/go/blob/release-branch.go1.

Re: [go-nuts] Turning off nagle's algorithm for http.Client

2016-10-09 Thread Sokolov Yura
Read carefully, and you will not need to do redundant work and write redundant code. It is really here: https://github.com/golang/go/blob/release-branch.go1.6/src/net/tcpsock_posix.go If you don't see it... Then you reading skill is weak. -- You received this message because you are subscribe

Re: [go-nuts] Turning off nagle's algorithm for http.Client

2016-10-09 Thread hay
@Janne, thanks got it working. @Sokolov, I don't see it set in dial code. I'm using 1.6.* version. -- 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+un

Re: [go-nuts] Turning off nagle's algorithm for http.Client

2016-10-09 Thread Sokolov Yura
Looks lije SetNoDelay is already called on dial. Look into source. -- 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

Re: [go-nuts] Turning off nagle's algorithm for http.Client

2016-10-08 Thread Janne Snabb
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

[go-nuts] Turning off nagle's algorithm for http.Client

2016-10-08 Thread hay
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 ) ? Regar