aboutsummaryrefslogtreecommitdiffstats
path: root/util/adminstream.lua
Commit message (Collapse)AuthorAgeFilesLines
* mod_admin_socket: Fix typo in commentsKim Alvefur2023-01-201-1/+1
| | | | Introduced in 6966026262f4
* mod_admin_socket: Comment on LuaSocket UNIX compat codeKim Alvefur2022-03-161-0/+6
| | | | Ref #1717
* mod_admin_socket: Compat for luasocket prior to unix datagram supportKim Alvefur2022-03-151-0/+3
| | | | | | | | | | The "socket.unix" module exported only a function before https://github.com/lunarmodules/luasocket/commit/aa1b8cc9bc35e56de15eeb153c899e4c51de82a8 when datagram support was added. Fixes #1717 Thanks rsc and lucas for reporting and testing
* 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