[go-nuts] Re: [mysql] 2017/12/23 11:09:37 packets.go:141: write tcp 127.0.0.1:20630->127.0.0.1:3306: write: broken pipe

2017-12-27 Thread Anuj Agrawal
I am seeing similar logs even after I add db.SetConnMaxLifetime(10 * time.Second). Test code here: https://play.golang.org/p/itTUXDYv4Ge Any suggestions on how to debug further? On Monday, December 25, 2017 at 12:10:02 PM UTC+5:30, Naoki INADA wrote: > > >> >> To prevent further errors set con

[go-nuts] Re: Go Community Charity Work?

2017-12-27 Thread Tamás Gulácsi
Yes, exactly. That's why I think this needs some central authority - maybe cross-signing the manufacturer's public key is enough. -- 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, s

[go-nuts] Re: Go Community Charity Work?

2017-12-27 Thread Frank Davidson
You mean a fraudster sets up a site under "bauer.com", gets a CA's cert, and then starts creating labels for bad drugs that follows our system? Can they do that? If so, I think you're right, we should have a server registry of "recognized" manufacturers. Maybe it holds their domain name and a

[go-nuts] Re: Go Community Charity Work?

2017-12-27 Thread Tamás Gulácsi
Sure it's enough. But how do you fight against Bauer (instead of Bayer), or do I know the proper spelling of GSK? Like Adidas vs. Adios... -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails

[go-nuts] Re: Go Community Charity Work?

2017-12-27 Thread Frank Davidson
Let's use QR codes then! Do we have to have a central registry/key server if we verify a domain's certificate? Isn't that enough to tell us that that domain and, hence, that public key is owned by that manufacturer? Or am I getting something wrong? How does Chrome know that a site's cert is goo

[go-nuts] Resolving *ast.Ident without access to package imports

2017-12-27 Thread yuhan . fang
I would like to parse the following and determine that "have.Bar" is a "Bar" from package "some/package/i/dont/have", with the caveat that I don't have access to that package. package foo import "some/package/i/dont/have" type Foo struct { have.Bar } In other words, the ideal function (de

[go-nuts] Re: golang gc time STW1=>Mark=>STW2

2017-12-27 Thread Dave Cheney
Yes, please see the description of the operation of th garbage collector. https://github.com/golang/go/blob/master/src/runtime/mgc.go#L66 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails f

[go-nuts] Re: golang gc time STW1=>Mark=>STW2

2017-12-27 Thread 刘桂祥
195+0.26+0.025 ms 0.065+0.82+0.041 ms 242+0.32+0.016 ms 0.010+0.37+0.039 ms 233+0.33+0.014 ms version go1.9.2 I want to ask why the third phrase mark-termination time is always short, it also need STW ?? 在 2017年12月27日星期三 UTC+8下午5:14:52,Dave Cheney写道: > > I’m sorry I don’t understand the questio

[go-nuts] golang gc time STW1=>Mark=>STW2

2017-12-27 Thread Dave Cheney
I’m sorry I don’t understand the question you are asking but what I see from those gc times is your go busy() goroutine is blocking the STW1 phase because Go cannot currently preempt running functions. -- You received this message because you are subscribed to the Google Groups "golang-nuts"

[go-nuts] [ANN] Microservices/function as a service platform writte in Go

2017-12-27 Thread johnny-john
Hi guys! I just thought about dropping this here: https://github.com/1backend/1backend It is a microservices/faas/serverless platform that (hopes to) enable you to write applications in multiple languages as easy as doing it in one language/monolithic application. Take care -- You received

[go-nuts] golang gc time STW1=>Mark=>STW2

2017-12-27 Thread 刘桂祥
package main import ( "runtime" _ "net/http/pprof" "net/http" "time" ) var ch = make(chan struct{},1) func printMem() { var mem runtime.MemStats runtime.ReadMemStats(&mem) println(mem.HeapObjects) } func easy() { <-ch } func bussy() { sum := 0 for i:=0;i