Software /
code /
prosody
Comparison
net/server_epoll.lua @ 9441:116a9d0a295c
net.server_epoll: Pass error number to logging
Why do we ignore unused secondaries?
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 06 Oct 2018 18:50:30 +0200 |
parent | 9439:988392a56495 |
child | 9445:af7eafe82447 |
comparison
equal
deleted
inserted
replaced
9440:1ddecde4ce98 | 9441:116a9d0a295c |
---|---|
265 end | 265 end |
266 if r == nil then r = self._wantread; end | 266 if r == nil then r = self._wantread; end |
267 if w == nil then w = self._wantwrite; end | 267 if w == nil then w = self._wantwrite; end |
268 local ok, err, errno = poll:add(fd, r, w); | 268 local ok, err, errno = poll:add(fd, r, w); |
269 if not ok then | 269 if not ok then |
270 log("error", "Could not register %s: %s(%d)", self, err); | 270 log("error", "Could not register %s: %s(%d)", self, err, errno); |
271 return ok, err; | 271 return ok, err; |
272 end | 272 end |
273 self._wantread, self._wantwrite = r, w; | 273 self._wantread, self._wantwrite = r, w; |
274 fds[fd] = self; | 274 fds[fd] = self; |
275 log("debug", "Watching %s", self); | 275 log("debug", "Watching %s", self); |