You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However trying the same in a for loop starting goroutines, most of my functions error out with: 2021/04/29 15:05:24 Error querying influx unable to decode json: received status code 200 err: unexpected EOF
Now with goroutines, the same snippet works with a sync.Mutex:
I met a new issue. When writing to influxdb with the same client in 36 go routines, there is the following error: Post \"http://127.0.0.1:8086/write?consistency=&db=smp&precision=s&rp=\": read tcp 127.0.0.1:42896->127.0.0.1:8086: read: connection reset by peer
I guess it's the same reason.
Hi,
after some thorough testing with goroutines, I do not understand how the documentation can claim:
Indeed, trying this snippet of code in a for loop works properly:
However trying the same in a for loop starting goroutines, most of my functions error out with:
2021/04/29 15:05:24 Error querying influx unable to decode json: received status code 200 err: unexpected EOF
Now with goroutines, the same snippet works with a
sync.Mutex
:What am I missing here?
The text was updated successfully, but these errors were encountered: