Software /
code /
prosody
Comparison
net/server_select.lua @ 3008:23915803adbf
net.server_select: Fix typo affecting connections with an onconnect listener that have data pending in the sendbuffer
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 05 May 2010 17:12:32 +0100 |
parent | 3003:48871a549b4c |
child | 3010:52146b82f295 |
child | 3310:ddcab5be2a5e |
comparison
equal
deleted
inserted
replaced
3006:a3580f556c27 | 3008:23915803adbf |
---|---|
627 _sendlistlen = addsocket(_sendlist, socket, _sendlistlen) | 627 _sendlistlen = addsocket(_sendlist, socket, _sendlistlen) |
628 handler.sendbuffer = function () | 628 handler.sendbuffer = function () |
629 listeners.onconnect(handler); | 629 listeners.onconnect(handler); |
630 handler.sendbuffer = _sendbuffer; | 630 handler.sendbuffer = _sendbuffer; |
631 if bufferqueuelen > 0 then | 631 if bufferqueuelen > 0 then |
632 return _senddbuffer(); | 632 return _sendbuffer(); |
633 end | 633 end |
634 end | 634 end |
635 end | 635 end |
636 return handler, socket | 636 return handler, socket |
637 end | 637 end |