aboutsummaryrefslogtreecommitdiffstats
path: root/util/adminstream.lua
Commit message (Collapse)AuthorAgeFilesLines
* adminstream: fire disconnected event on lower layer disconnectJonas Schäfer2021-12-211-0/+1
| | | | | | | | | | | This may in theory cause multiple disconnect events for the adminstream client, if the only code using that wasn't calling os.exit right away. Hence, this should be a good enough partial fix for #1671. It is not a full fix, because the shell will only notice the disconnect after one has hit enter in the input; until then, it is stuck in a read() call to stdin and completely oblivious to the disconnect.
* util.adminstream: Prevent closure on read timeoutKim Alvefur2020-06-181-1/+1
|
* util.adminstream: Set a read timeout handlerKim Alvefur2020-06-041-0/+9
| | | | So that net.server doesn't close the connection on inactivity.
* util.adminstream: Fire event based on stanza name too for convenienceMatthew Wild2020-06-031-1/+3
|
* util.adminstream: Import net.server [luacheck]Matthew Wild2020-06-021-0/+1
|
* util.prosodyctl.shell, util.adminstream: Move connection logic into ↵Matthew Wild2020-06-021-0/+39
| | | | adminstream for easier reuse
* mod_admin_socket, util.adminstream: New module to manage a local unix domain ↵Matthew Wild2020-06-011-0/+285
socket for admin functionality