[go-nuts] Why HeapInuse - HeapReleased is greater than "used" memory returned by "free" util?

2019-08-30 Thread Sergey Naumov
Hello. I've originally asked this question on StackOverflow: https://stackoverflow.com/questions/57714300/ho-to-properly-interpret-heapinuse-heapidle-heapreleased-memory-stats-in-gol So here I will write just a quick summary: I monitor memory usage of my program to determine memory pressure con

[go-nuts] how to detect in go that connection is closed without interfering into it (reading or writing data)

2018-01-19 Thread Sergey Naumov
Hi All. I see https://github.com/golang/go/issues/10940 issue that relates to my problem, and it looks like I must read from / write to a connetion to check whether it is alive, but want to ask if something get changed since this bug was closed without a fix. A bit of context: I'm dialing to