summaryrefslogtreecommitdiff
path: root/src/modules/debug_shell.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/debug_shell.lua')
-rw-r--r--src/modules/debug_shell.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/debug_shell.lua b/src/modules/debug_shell.lua
index 85ea4b6..9632383 100644
--- a/src/modules/debug_shell.lua
+++ b/src/modules/debug_shell.lua
@@ -81,8 +81,8 @@ function debug_shell:new(config, runtype)
server_sock_raw:settimeout(0)
local server_sock = {}
+ server_sock.fd = server_sock_raw:getfd()
server_sock.sock = server_sock_raw
- function server_sock:getfd() return self.sock:getfd() end
function server_sock:read()
local client_sock_raw, err = self.sock:accept()
if(client_sock_raw == nil) then
@@ -94,8 +94,8 @@ function debug_shell:new(config, runtype)
client_sock_raw:setoption('tcp-nodelay', true);
local client_sock = {}
+ client_sock.fd = client_sock_raw:getfd()
client_sock.sock = client_sock_raw
- function client_sock:getfd() return self.sock:getfd() end
client_sock.client_instance = nil
client_sock.in_buffer = ""
client_sock.out_buffer = ""