[go-nuts] Type findfuncbucket shown from gdb

2017-08-19 Thread Yuwei Ba
Hey guys, sorry for bothering :D Here I want to ask a small question about the Golang binary debug info. The steps to reproduce my problem: 1. $ cat symtab.go ``` package main import ( "fmt" "net/http" _ "net/http/pprof" "os" ) func main() { fmt.Println(os.Getpid()) http.ListenAndServe(":9990

Re: [go-nuts] http.Server handlers seem to stick around forever

2017-04-18 Thread Yuwei Ba
Disabling the HTTP connection keep-alive may help for this situation by calling: `srv.SetKeepAlivesEnabled(false)` and get the expected output **sometimes** $ go run a.go In handler wrapper, f = 0xc4200111a0 1 In handler wrapper, f = 0xc4200111a8 2 Though, it’s strange that you’ll still need t