Re: [go-nuts] Memcached replacement in GO!

2016-11-16 Thread Hirotaka Yamamoto (ymmt2005)
> Basically the memcache*d* extension for PHP was buggy yeah, and that's the reason I wrote our own memcached client for PHP5 & 7. We believe it's very stable as we do not experience even a single failure in our cloud service for years. Please try out! https://github.com/cybozu/php-yrmcds/ 201

[go-nuts] Re: Version Control entire GOPATH

2016-11-12 Thread Hirotaka Yamamoto (ymmt2005)
We are developing Go programs on a Git mono repository. To include dependencies, we do not use "go get". Instead, we import third party packages by using "git subtree". For instance, github.com/BurntSushi/toml can be imported like this: git remote add -f toml https://github.com/BurntSushi/tom

[go-nuts] Re: [ANN] httpsnoop, an easy way to capture http related metrics (response time, bytes written, and http status code)

2016-11-10 Thread Hirotaka Yamamoto (ymmt2005)
Hi, I had implemented and blogged the technique to properly wrap http.ResponseWriter: http://ymmt2005.hatenablog.com/entry/2016/09/01/How_to_hack_Go%27s_http_Server_correctly type StdResponseWriter interface { http.ResponseWriter io.ReaderFrom http.Flusher http.CloseNotifier http.Hijacker

[go-nuts] Re: Can anyone show an example of using Context in net.http middleware?

2016-09-02 Thread Hirotaka Yamamoto (ymmt2005)
This is a real world example from our middleware. https://github.com/cybozu-go/cmd/blob/master/http.go#L122-L132 It uses the context in the request to propagate a unique ID. Please see also my announcement of the package here :-) https://groups.google.com/forum/#!topic/golang-nuts/I0wVToodcdo 201

[go-nuts] [ANN] cybozu-go/cmd for graceful commands

2016-09-01 Thread Hirotaka Yamamoto (ymmt2005)
http.Server for transparent access logging and graceful stop: http://ymmt2005.hatenablog.com/entry/2016/09/01/How_to_hack_Go%27s_http_Server_correctly All our open source Go products are already using cybozu-go/cmd. For example, cybozu-go/usocksd is a SOCKS4/5 server library and command that can stop

Re: [go-nuts] context: testing if an HTTP request was canceled

2016-08-22 Thread ymmt2005
I am experiencing the same problem, and the fix from Ian will resolve it. ymmt2005 2016年8月23日火曜日 3時08分26秒 UTC+9 Ian Lance Taylor: > > On Sun, Aug 21, 2016 at 9:53 AM, Manlio Perillo > > wrote: > > I writing a simple HTTP client using the new context support in Go 1.7. > &