Re: [go-nuts] Is this a compilation optimization bug ?

2022-06-29 Thread 'Dan Kortschak' via golang-nuts
On Tue, 2022-06-28 at 09:40 -0700, Ian Lance Taylor wrote: > Please open an issue.  Thanks. Filed https://go.dev/issue/53600. Dan -- 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,

Re: [go-nuts] Temporary prevent preemption?

2022-06-29 Thread TH
Hey Kurtis, Is asynchronous preemption only the ones that are waiting for netpolls? So when a call is waiting on a network receive or send, scheduler will context switch? And when... lets say... for { i++ } -loop get's preemptied, this would be called synchronous preemption? Or is it vice vers

Re: [go-nuts] Temporary prevent preemption?

2022-06-29 Thread Brian Candler
Vice-versa. Asynchronous preemption is when the goroutine is *not* waiting in a syscall, but is performing computations. If it spends too much time working, it will be kicked off and another goroutine given a chance to run on the same thread. On Wednesday, 29 June 2022 at 17:24:21 UTC+1 TH wro

[go-nuts] Query regarding net/http/cookiejar: Cookies() method and Expiry/MaxAge

2022-06-29 Thread Amit Saha
Hi all, Currently the Cookies() method as explained at https://pkg.go.dev/net/http/cookiejar#Jar.Cookies only adds the Name and Value of the cookies and strips out the MaxAge and Expires field (and all other fields). Presumably, as I can see in the code, the logic is if a cookie is returned as a r

Re: [go-nuts] Query regarding net/http/cookiejar: Cookies() method and Expiry/MaxAge

2022-06-29 Thread 'Sean Liao' via golang-nuts
Implement your own cookie jar, See also: https://github.com/golang/go/issues/19291#issuecomment-282576908 - sean On Wed, Jun 29, 2022 at 11:31 PM Amit Saha wrote: > Hi all, > > Currently the Cookies() method as explained at > https://pkg.go.dev/net/http/cookiejar#Jar.Cookies only adds the Nam

[go-nuts] Re: Query regarding net/http/cookiejar: Cookies() method and Expiry/MaxAge

2022-06-29 Thread Volker Dobler
On Thursday, 30 June 2022 at 00:31:29 UTC+2 amits wrote: > Currently the Cookies() method as explained at > https://pkg.go.dev/net/http/cookiejar#Jar.Cookies only adds the Name and > Value of the cookies and strips out the MaxAge and Expires field (and all > other fields). Presumably, as I can