Commit Graph

105 Commits (47c821cf549c8ea4645190a8f4bb18b7a2eaee2b)

Author SHA1 Message Date
Kim Alvefur c2f7450809 server_select: Retry accepting clients from full servers after 10s (matches libevent behaviour) 10 years ago
Florian Zeitz 1d833bb807 Remove all trailing whitespace 13 years ago
Kim Alvefur a7340fef1c net.server*: Allow the TCP backlog parameter to be set in the config 13 years ago
Kim Alvefur 39acad1765 net.server, _select: Reorganise configuration of server_select to be more like server_event 13 years ago
Kim Alvefur 6aa6f988a6 net.server: No sections in config anymore 13 years ago
Kim Alvefur 45da10ec05 net.server: Don't return anything from config-reloaded hook, fixes logrotate heisenbug 13 years ago
Kim Alvefur d5176c487c net.server: Fix when no network_settings set and using libevent 13 years ago
Kim Alvefur 6890dbd62f net.server: Make server_* configurable in the config file. 13 years ago
Matthew Wild dab0914ee7 net.server: server_select != server_event (thanks Nulani, Florob) 14 years ago
Matthew Wild ffa939698b net.server, net.timer, net.server_select: Rearrange dependencies between these three modules. server.addtimer() is no longer a public function (renamed to _addtimer) and is not available at all from server_event (compat code removed to prevent traceback) (thanks Nulani) 14 years ago
Matthew Wild 5ceda8f546 net.server: Don't load configmanager if not running inside Prosody, assume server_select 16 years ago
Matthew Wild 6778955731 net.server: Fix logic error causing traceback when receiving a non-number port 16 years ago
Matthew Wild 2bc0606453 Update copyright headers for 2010 16 years ago
Matthew Wild 609442222a net.server: Remove redundant commented code and some trailing whitespace 16 years ago
Matthew Wild 5b19c141d9 net.server: When libevent backend is in use, override signal.signal to use server.hook_signal 16 years ago
Matthew Wild c82b309e78 net.server_select: Restore checks for wantread/timeout errors on receive 16 years ago
Matthew Wild 3ad72c194c net.server_select: Make bufferlen() method return, of all things, the buffer length 16 years ago
Matthew Wild d3176587c4 net.server_select: Fix possibility of losing data sent from a socket just before it closes (thanks Sjoerd Simons) 16 years ago
Waqas Hussain 3d08f189a3 net.server: Log an error when libevent is requested, but luaevent is unavailable, and don't load luaevent when not requested. 16 years ago
Matthew Wild 61285cd82a net.server: Add some comments to explain to waqas how it all works :) 16 years ago
Matthew Wild 5c62434466 net.server: Small fix for addtimer() compatibility code 16 years ago
Matthew Wild 2a8668dd30 net.server: New net.server to choose the appropriate library from server_select/server_event based on the availability of luaevent and the use_libevent config option 16 years ago
Matthew Wild 7f86cfbcc0 net.server: Rename to net.server_select 16 years ago
Matthew Wild e61fe22f94 server.lua: Standardise on 'client' variable to refer to the socket, makes the code a bit cleaner 16 years ago
Matthew Wild 493cfc9817 server.lua: Add addsocket(), refactor all code to use it, fixes nasty socket object leak - moral of the story is to not duplicate code, and not prematurely optimise. But you knew that already didn't you? 16 years ago
Matthew Wild 466b2ee661 net.server: Allow changing the sslctx of a connection after it has been established 16 years ago
Matthew Wild 68f948425a net.server: Better handling of closing sockets during send 16 years ago
Matthew Wild f25a7309ed net.server: Small logging improvements 16 years ago
Matthew Wild e03f835ae7 net.server: Pass current time to timer callbacks 16 years ago
Matthew Wild 559f264f4b net.server: Increase SSL handshake round-trip limit, and make it configurable 16 years ago
Matthew Wild 2be1fcb5af net.server: Call handler's status() to notify it of ssl handshake success 16 years ago
Matthew Wild ed6bf969af net.server: Provide a way to get sslctx of a client connection 16 years ago
Matthew Wild 0b8c96ecde net.server: Provide a way to get sslctx of a server 16 years ago
Matthew Wild 1d9d763906 net.server: Fix missing concatenation operator in error message 16 years ago
Matthew Wild df867fb148 net.server: Fix traceback when closing connections with buffered data get closed during send 17 years ago
Matthew Wild f3f4b12eb5 net.server: Add checking for nil sockets to prevent traceback 17 years ago
Matthew Wild a440c6f67a net.server: Add checking for nil sockets to prevent traceback 17 years ago
Matthew Wild 798c75481e net.server: Comment all calls to mem_free/collectgarbage... not really suitable for a realtime server, let's trust Lua's GC - it's good. 17 years ago
Matthew Wild f63e2f139a net.server: Much improve SSL/TLS error reporting, do our best to understand and hide OpenSSL's ridiculously unfriendly error messages 17 years ago
Matthias Diene 23a10d0390 net.server: Fail to open port if legacy SSL requested, but SSL not available 17 years ago
Matthew Wild 70f4cd7cb7 net.server: Remove listener from listeners table when calling removeserver 17 years ago
Matthew Wild 7dfac00cff net.server: Set sslctx to false when SSL wrapping fails, to avoid attempting to wrap clients with a broken context 17 years ago
Matthias Diener 88ed977abb net.server: Continue to initialise port listener even when SSL errors occur 17 years ago
Matthew Wild 3f0c5c91e3 net.server: Initiate the handshake when we should, the more correcter fix for the previous correct fix 17 years ago
Matthew Wild c9d670551e net.server: Fix copyright header line endings and text 17 years ago
Matthew Wild 86905bacbb net.server: Correct fix for SSL traceback earlier 17 years ago
Matthew Wild 390df4ca2e net.server: Don't continue with socket initialisation if SSL handshake failed, fixes nil socket traceback 17 years ago
Matthew Wild 4273b66a6c net.server: Don't close handler if it is already nil when SSL handshake fails 17 years ago
Matthew Wild e45610ce6e Add copyright header to those files missing one 17 years ago
Matthew Wild 8f7a737f08 net.server: Display server port in error messages 17 years ago