[go-nuts] Re: Race detector question

2022-09-14 Thread robert engels
Ignore the first part - got bit by the ol' append() and that slices are a struct not a pointer - so they can’t be atomically updated (need to use atomic.Value I guess) - so it was simpler to wrap in Lock/Unlock when accessing the slice and ensure a new slice was used during assignment. The foll

[go-nuts] Race detector question

2022-09-14 Thread robert engels
Hi, I am working on a new project, and the race detector is reporting a race. Essentially, the code is var S []int several go routines write new S values using a mutex go routine Y reads S without grabbing a lock (it reads it initially under lock) The semantics are such that Y can operate suc

Re: [go-nuts] Is this a possible bug with pipe

2022-09-14 Thread Jan Mercl
On Thu, Sep 15, 2022 at 1:53 AM ramki...@hotmail.com wrote: > When I submitted it as a bug, this is what I got. > https://github.com/golang/go/issues/55029 By chance, do you know what is a > buffering for io.Copy? https://cs.opensource.google/go/go/+/refs/tags/go1.19.1:src/io/io.go;l=385 --

[go-nuts] Re: What is a good way to implement idle read timeout in service

2022-09-14 Thread 文以载道博学多能
For one way conn, you may want to see my idle conn implement. https://github.com/gotcpforward/gotcpforward/blob/master/main.go For two way conn, you may want to have a bit more work. to waiting a idle conn, both upload/download idle timeout. with my tool library https://github.com/infobsmi/bs

Re: [go-nuts] Is this a possible bug with pipe

2022-09-14 Thread ramki...@hotmail.com
When I submitted it as a bug, this is what I got. https://github.com/golang/go/issues/55029 By chance, do you know what is a buffering for io.Copy? On Monday, September 12, 2022 at 5:26:21 PM UTC-4 Jan Mercl wrote: > On Mon, Sep 12, 2022 at 11:16 PM ramki...@hotmail.com > wrote: > > > > I cr

[go-nuts] What is a good way to implement idle read timeout in service

2022-09-14 Thread Himani Arora
I'm implementing a service in Go where I receive a potentially long-running file upload from a user. I want to time out if I do not receive data from the user for more than a few seconds, but as long as I'm receiving data I want the request to continue indefinitely. What's the best way to do thi

[go-nuts] Re: WinVerifyTrust WTD_STATEACTION_VERIFY wrong value

2022-09-14 Thread amit choudhary
can you please share the go implementation On Wednesday, June 23, 2021 at 9:12:58 PM UTC+5:30 jake...@gmail.com wrote: > I would encourage you to file an issue ( > https://github.com/golang/go/issues), as this seems likely to be a bug. > > On Tuesday, June 22, 2021 at 8:52:58 PM UTC-4 fedegar...

[go-nuts] [Discussion] Apache Arrow/Parquet and Go

2022-09-14 Thread Matt Topol
Hey fellow gophers, I'm gonna be giving a talk on using Apache Arrow and Parquet with Go at ApacheCon NA 2022 in October and I'm trying to reach out to the wider Go community to try to enrich and improve the talk. Is anyone here familiar with Arrow and/or using Go (or wanting to use Go) for EL

Re: [go-nuts] go run Cmd/compile/, then errors: use of internal package not allowed

2022-09-14 Thread Ian Lance Taylor
On Wed, Sep 14, 2022 at 7:48 AM 布雷 wrote: > > when I run `go run src/cmd/compile/main.go`, I got error at main.go:8:2: > use of internal package cmd/compile/internal/amd64 not allowed. I'm confused > with the error and cann't solve it. > getting help. I wouldn't expect that to work even if

Re: [go-nuts] [generics] type constraint for structs

2022-09-14 Thread Abraham
I am glad I found this thread because I was just now breaking my head figuring out why my was not working On Wednesday, May 18, 2022 at 10:41:29 PM UTC-4 Ian Lance Taylor wrote: > On Wed, May 18, 2022 at 7:36 PM Jeremy Kassis wrote: > > > > Where exactly did this land? Seems like an import

[go-nuts] go run Cmd/compile/, then errors: use of internal package not allowed

2022-09-14 Thread 布雷
when I run `go run src/cmd/compile/main.go`, I got error at main.go:8:2: use of internal package cmd/compile/internal/amd64 not allowed. I'm confused with the error and cann't solve it. getting help. -- You received this message because you are subscribed to the Google Groups "golang-nuts