1
0
mirror of https://github.com/google/gops.git synced 2024-11-24 08:22:25 +02:00
Commit Graph

8 Commits

Author SHA1 Message Date
Tobias Klauser
268f11e4fc agent: allow to set SO_REUSEPORT on listening socket
Introduce Option.SocketReuseAddrAndPort which, if set, will lead to the
SO_REUSEPORT socket option being set on the listening socket on
Unix-like OSes. This also sets SO_REUSEADDR which is already the default
in net.Listen (see net.setDefaultSockopts).

Setting these options increases the chance to re-bind() to the same
address and port upon agent restart if Options.Addr is set.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2020-12-09 19:27:52 +01:00
Rambone
dcc978d6e8 make ConfigDir configurable (#61)
make ConfigDir configurable

* internal: retrieve ConfigDir from GOPS_CONFIG_DIR environment variable

* make code graceful

* code optimize
2017-11-13 00:52:04 -07:00
JBD
1a41b817e5 agent: don't close on interrupt by default (#49) 2017-09-11 19:50:16 -07:00
Cezar Sá Espinola
c8ccacaea5 agent: prettier formatting for units printed by memstats (#28) 2017-02-17 16:06:16 -08:00
Jaana Burcu Dogan
4698eb04b6 agent: fix race between Close and listener assert 2016-12-20 12:56:40 -08:00
Jaana Burcu Dogan
108d4a8a8e agent: stat portfile only if filename exists 2016-12-20 12:48:15 -08:00
Jaana Burcu Dogan
7973d7aa4f agent: simplify options, allow only one listener 2016-12-20 12:23:05 -08:00
Cezar Sa Espinola
707d15f9b7
agent: basic tests for starting and stopping the agent 2016-12-15 23:13:44 -02:00