Re: [go-nuts] What is "pclntab's format"

2022-08-21 Thread Ian Lance Taylor
On Sun, Aug 21, 2022 at 3:37 AM Benjamin Yim wrote: > > in my local run panic ex: > runtime: pcHeader: magic= 0xfff0 pad1= 0 pad2= 0 minLC= 1 ptrSize= 8 > pcHeader.textStart= 0x1001000 text= 0x1001000 pluginpath= > fatal error: invalid function symbol table > runtime: panic before malloc heap

[go-nuts] Re: Go multiplexers

2022-08-21 Thread TheDiveO
Looks like a TCP proxy or forwarder to me. For full duplex communicating you need two go routines per connection/session. And yes, needs something like a wait group for synchronization in order to handle half- closed connections properly, for client and server variants. On Sunday, August 21, 2

[go-nuts] Re: Go multiplexers

2022-08-21 Thread Brian Candler
"conn" is just a value, you can pass it around. However, if you're sharing it between multiple goroutines you need to be careful, i.e. you need to synchronize properly. The synchronization solutions are very specific to your application: e.g. you could wait for that goroutine to finish with a

[go-nuts] Re: Go multiplexers

2022-08-21 Thread ramki...@hotmail.com
My original issue is when using splice with io.Copy (example below), for me to regain access to conn, In a different go routine, I use remote.Close() which ends the one of io.Copy commands but, the second io.Copy ends when conn sends a new packet. The error use of closed network connection en

[go-nuts] What is "pclntab's format"

2022-08-21 Thread Benjamin Yim
in my local run panic ex: runtime: pcHeader: magic= 0xfff0 pad1= 0 pad2= 0 minLC= 1 ptrSize= 8 pcHeader.textStart= 0x1001000 text= 0x1001000 pluginpath= fatal error: invalid function symbol table runtime: panic before malloc heap initialized runtime stack: runtime.throw({0x106f352?, 0xf4d700

[go-nuts] Re: Go multiplexers

2022-08-21 Thread TheDiveO
do you even need a multiplexer? The common patten is to run Accept in a loop that simply starts a new Go routine for every new accepted connection. You only need a multiplexer of your application protocol needs multiplexing inside an established TCP connection, either because there are multiple

[go-nuts] Re: Python cool methods in Golang

2022-08-21 Thread TheDiveO
...and please talk to your compliance officer first. Posting using a company account and then offering discussion on a private/personal email account is a law disaster brewing. Make it clear it's either your personal pet project without conflict of interest, or a company-allowed project. Other

Re: [go-nuts] Go multiplexers

2022-08-21 Thread Brian Candler
> Can you tell me how I can figure out what it speaks? Finding that information doesn't appear to be hard: https://github.com/hashicorp/yamux#specification "The full specification for Yamux is provided in the spec.md file. It can be use