i was imagining the os/kernel (network stack) is controlling the routing of data, so knows the process handling the port, how many bytes go through to it and the ip it came from, plus the same for the response.
i had a play with 'iptraf-ng' ( the older 'iptraf' only worked for local addresses for me) and then was watching bytes going to/from a simple go server i knocked up, with local browsers, remote browsers, remote servers. plus all sorts of other background stuff going on, like requests/responses from a time server, dropbox, and lots of things i needed to google. On Friday, 26 January 2018 04:31:50 UTC, Augusto Roman wrote: > > Interesting. I wouldn't expect kernel functions to give me per-request > statistics, however, I'd expect per-process (or if I'm lucky per-thread) > statistics. Is that what you were imagining? > > -- 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, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.