summaryrefslogtreecommitdiff
path: root/t/stats-conns.t
Commit message (Collapse)AuthorAgeFilesLines
* Find perl via /usr/bin/env instead of directlyDavid CARLIER2022-08-251-1/+1
| | | | | At least FreeBSD has perl in /usr/local/bin/perl and no symlink by default.
* Add build option to disable unix socket functionality.Jefty Negapatan2020-04-111-46/+51
| | | | | | 1. configure.ac - Add --disable-unix-socket to disable and define DISABLE_UNIX_SOCKET. 2. memcached.* - Guard all unix socket-related codes with DISABLE_UNIX_SOCKET. Take note of negative checking (#ifndef DISABLE_UNIX_SOCKET instead of #ifdef UNIX_SOCKET). This is just to make sure that current code even without a config file is the default or supports unix socket. 3. t/ - Check first if unix socket is supported before executing some unix socket-related tests.
* add server address to the "stats conns" outputTharanga Gamaethige2019-08-291-1/+6
| | | | | | this is helpful when it's required to identify which clients are connected to which server address when memcached listens on multiple addresses
* default to unix sockets for testsdormando2017-07-261-1/+2
| | | | | | | | | | | | | | | Tests have randomly failed to start since the beginning of time, due largely to port assignment. A random local port is tested, then passed onto the daemon to try. If that port (on 0.0.0.0) becomes used in the meantime, it fails. Now, tests default to using unix sockets unique to the pid of the test parent. Some tests still run via the network and have been changed to 127.0.0.1, which should collide less with normal internet connections. Some tests require that due to some timing issues that unix sockets seem to create, and others expect a network in a few cases. Ran the tests with `PARALLEL=9 make test` on my machine for two hours and they didn't fail once.
* whitespace fix for hurd fixes.dormando2016-05-281-2/+2
|
* Don't test socket pathname on GNU/HurdGuillaume Delacour2016-05-281-2/+7
|
* Factor out string representation of connSteven Grimm2014-02-161-3/+3
|
* Add a "stats conns" command to show the states of open connections.Steven Grimm2014-02-161-0/+65
This is mostly for debugging purposes, e.g., to detect hung clients, but the implementation also simplifies management of connection descriptors by eliminating use of the freelist and allocating a static pointer array indexed by descriptor. (The actual conn structures are still allocated on demand, so the impact on memory consumption is negligible.) To be able to show multiple concurrent UDP requests, the UDP socket is dup()ed so that each worker thread has its own UDP file descriptor to process rather than all sharing a single one. This means the server can handle slightly fewer TCP clients before running up against its file descriptor limit, but any installation that's running that close to the limit really ought to either raise the limit or use a proxy of some kind anyway, so this should have no real-world downside.