- 28 8月, 2020 1 次提交
-
-
由 Disconnect3d 提交于
Changes the port parsing from `/proc/net/*` files records from parsing them as 64-bit integers to parse them as 16-bit unsigned integers. While this is mostly a cosmetic change, it will also make so that the code fails faster in case the entry is malformed (for whatever reason). Note that the returned value is still casted to uint32 when an `Addr` object is created. It seems to me that the `Addr.port` field should be changed to `uint16` but maybe some other APIs/systems wants it to be `uint32` and also changing it there may require changes in users code if they update. This being said I am not changing that field's type.
-
- 17 5月, 2020 1 次提交
-
-
由 gtosh4 提交于
-
- 01 11月, 2019 1 次提交
-
-
由 Brian C. Williams 提交于
-
- 11 7月, 2019 1 次提交
-
-
由 Lomanic 提交于
-
- 12 6月, 2019 1 次提交
-
-
由 wcc526 提交于
`connectionsList, err := net.ConnectionsMax("tcp4", 1000)` when you run net.ConnectionsMax,you will find some proc is not equal with the `netstat -lptn`
-
- 12 5月, 2019 1 次提交
-
-
由 Curtis Mattoon 提交于
-
- 28 11月, 2018 1 次提交
-
-
由 Joe Stringer 提交于
Signed-off-by: NJoe Stringer <joe@cilium.io>
-
- 20 11月, 2018 1 次提交
-
-
由 marcospedreiro 提交于
-
- 19 11月, 2018 1 次提交
-
-
由 marcospedreiro 提交于
-
- 14 9月, 2018 1 次提交
-
-
由 Iskander Sharipov 提交于
Found using https://go-critic.github.io/overview#emptyFallthrough-ref
-
- 31 12月, 2017 1 次提交
-
-
由 shirou 提交于
-
- 18 11月, 2017 1 次提交
-
-
由 Daniel Nelson 提交于
-
- 07 10月, 2017 1 次提交
-
-
由 shirou 提交于
This fixes #433
-
- 10 7月, 2017 2 次提交
-
-
由 WAKAYAMA Shirou 提交于
-
由 better88 提交于
-
- 04 5月, 2017 1 次提交
-
-
由 Alexander Blagoev 提交于
-
- 02 5月, 2017 1 次提交
-
-
由 Alexander Blagoev 提交于
The /proc/net files are not guaranteed to be consistent, they are only consitent on the row level. This is probably one of the reasons why consequent read calls might return duplicate entries - the kernel is changing the file as it is being read. In certain situations this might lead to loop like situations - the same net entry is being returned when reading the file as new connections are added to the kernel tcp table, i.e there can be a lot of duplications. This commit is trying to reduce the duplications, by fetching the contents of the net files with a single read syscall.
-
- 30 4月, 2017 2 次提交
-
-
由 Alexander Blagoev 提交于
-
由 Alexander Blagoev 提交于
-
- 29 4月, 2017 3 次提交
-
-
由 Alexander Blagoev 提交于
-
由 Alexander Blagoev 提交于
-
由 Alexander Blagoev 提交于
-
- 28 4月, 2017 1 次提交
-
-
由 Sean Chittenden 提交于
-
- 22 2月, 2017 1 次提交
-
-
由 Toshi Piazza 提交于
-
- 21 2月, 2017 1 次提交
-
-
由 Peter De Cleyn 提交于
-
- 21 12月, 2016 1 次提交
-
-
由 Conor Branagan 提交于
Instead of encoding a JSON string of each connection (non-trivial at high connection volumes) we can use the connTmp struct for map look-ups if we eliminate the unused `uids` field. Also switches to using the empty struct instead of bool for zero memory overhead.
-
- 20 12月, 2016 1 次提交
-
-
由 WAKAYAMA Shirou 提交于
-
- 12 12月, 2016 1 次提交
-
-
由 Conor Branagan 提交于
The goal is to improve performance of connection fetching connections across all processes when some processes can have several hundred or thousands of file descriptors. Right now when you have many thousands of fds the process spends lots of time inside the syscalls from Readdir and Readlink. The public API works as before with two new functions: - `ConnectionsMax` - `ConnectionsPidMax` Each function takes an additional int argument that sets the max number of fds read per process.
-
- 02 12月, 2016 1 次提交
-
-
由 Cameron Sparr 提交于
fixes #284
-
- 11 10月, 2016 1 次提交
-
-
由 Jean Kahrs 提交于
-
- 06 10月, 2016 2 次提交
-
-
由 Jean Kahrs 提交于
-
由 Jean Kahrs 提交于
-
- 13 6月, 2016 1 次提交
-
-
由 sandlbn 提交于
-
- 23 3月, 2016 1 次提交
-
-
由 Shirou WAKAYAMA 提交于
-
- 22 3月, 2016 1 次提交
-
-
由 Shirou WAKAYAMA 提交于
-
- 10 3月, 2016 1 次提交
-
-
由 Shirou WAKAYAMA 提交于
-
- 05 3月, 2016 2 次提交
-
-
由 Shirou WAKAYAMA 提交于
-
由 Shirou WAKAYAMA 提交于
-
- 04 3月, 2016 1 次提交
-
-
由 Shirou WAKAYAMA 提交于
-
- 01 3月, 2016 1 次提交
-
-
由 Shirou WAKAYAMA 提交于
-