Hi, thanks a lot for your reply. An example to illustrate my question: I want to send a sequence of POSTs to an HTTP server:
resp, e := c.Post(...) // c is an http.Client
if e != nil {
log.Fatal(e)
}
defer resp.Body.Close()
I can put this code inside a for loop. However, the calls will be sequential. So, I can put this code inside a function and call it many times with the 'go' keyword (always passing the same http.Client as input).
Now, what I see with Wireshark is that the "sequential" version actually re-uses the same TCP connection, while the "parallel" version uses different TCP connections, so I was wondering how can I send many POST request in parallel on the same TCP connection?
BR
Daniele