Re: [go-nuts] mutex profile headers

2024-07-29 Thread Ian Lance Taylor
On Mon, Jul 29, 2024 at 12:53 PM Leah Stapleton wrote: > > Hi, can anyone explain what the headers (in bold) refer to in mutex > profiles? Is it documented somewhere? Thank you > > > 871400731000 26738165 @ 0x81c8d94 0x81c8d93 0x81c88d7 0x8444386 0x82353a1 > # 0x81c8d93 runtime.unlock+0x4b3 /go

Re: [go-nuts] Re: go/types with typedef-of-typedef?

2024-07-29 Thread Jason E. Aten
I don't know. Here is what ChatGPT 4o mini suggested, accessed at https://chatgpt.com/; with some minor corrections to make it build. It seems to suggest there is no shortcut crosslink. The code below does demonstrate how to use the more up-to-date "golang.org/x/tools/go/packages" which ha

[go-nuts] mutex profile headers

2024-07-29 Thread Leah Stapleton
Hi, can anyone explain what the headers (in bold) refer to in mutex profiles? Is it documented somewhere? Thank you *871400731000 26738165 @ 0x81c8d94 0x81c8d93 0x81c88d7 0x8444386 0x82353a1* # 0x81c8d93 runtime.unlock+0x4b3 /usr/local/go/src/runtime/lock_sema.go:103 # 0x81c8d92 runtime.chans

Re: [go-nuts] How to refresh database/sql MySQL connection username and password

2024-07-29 Thread Robert Engels
I am fairly certain the reconnection details, etc will be driver specific.  Many dbs will not drop the current connections when changing passwords - only used when a new connection is created. The easiest solution is to set the max connection lifetime on the pool, and change the password there to m

[go-nuts] How to refresh database/sql MySQL connection username and password

2024-07-29 Thread prasa...@gmail.com
I have a long running daemon written in Go, that listens to a port and spins up multiple go routines for every new connection to handle the data. There is a global variable context that has db Conn(*sql.DB) that is assigned connection context returned by database/sql library’s open() function d