Software /
code /
prosody
Diff
net/server_epoll.lua @ 9321:146dc1e4c7ff
net.server_epoll: Simplify minimal string representation
.conn might just be the FD sometimes
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 15 Sep 2018 14:27:38 +0200 |
parent | 9320:8cc498cb0df7 |
child | 9381:80be543a3785 |
line wrap: on
line diff
--- a/net/server_epoll.lua Sat Sep 15 14:24:09 2018 +0200 +++ b/net/server_epoll.lua Sat Sep 15 14:27:38 2018 +0200 @@ -132,7 +132,7 @@ elseif self.sockname or self.peername then return ("FD %d (%s, %d)"):format(self:getfd(), self.sockname or self.peername, self.sockport or self.peerport); end - return ("%s FD %d"):format(tostring(self.conn), self:getfd()); + return ("FD %d"):format(self:getfd()); end -- Replace the listener and tell the old one