[go-nuts] [ANN] gonreli - use go http handlers in nodejs

2018-08-31 Thread Marcelo Pires
Hello gophers, this is a POC in early stages check out the example -- 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

[go-nuts] Re: Help debugging atomic.AddInt64 usage

2018-08-02 Thread Marcelo Pires
if h.ServeHTTP(w, r) panic and if is panic is not recovered by the handler you should alwways do: atomic.AddInt64(&concur, 1) defer atomic.AddInt64(&concur, -1) h.ServeHTTP(w, r) defer functions always run, even in case of panic -- You received this message because you are subscribed to the Goog

[go-nuts] Re: Help debugging atomic.AddInt64 usage

2018-08-02 Thread Marcelo Pires
> > use defer, in case of panic defer will always run , but probably will be > slower than mutex > > > atomic.AddInt64(&concur, 1) defer atomic.AddInt64(&concur, -1) h.ServeHTTP(w, r) -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To un

[go-nuts] Re: Help debugging atomic.AddInt64 usage

2018-08-02 Thread Marcelo Pires
you should use uint64. and to decremente up 1 use atomic.AddUint64(&concur, ^uint64(0)) -- 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...@g