Commit Graph

14 Commits (a00a7f76bc8bbc8a0174bfda7b7962e981e984df)

Author SHA1 Message Date
Matthew Wild 38b5bebb5e net.server_select: Add conn:setoption() to set options on the socket 16 years ago
Matthew Wild 62b1c8d4dc net.server_select: Fix oops in last commit 16 years ago
Matthew Wild f5a5f7d239 net.server_select: Allow setting the logger using server.setlogger 16 years ago
Matthew Wild 52ae20cb47 net.server_select: Add get_backend() method 16 years ago
Matthew Wild c0780f8d84 net.server_select, net.server_event: Convert to unix line endings from Windows 16 years ago
Matthew Wild 90cf9371a5 net.server_select: Restore checks for wantread/timeout errors on receive 16 years ago
Sjoerd Simons 2c89ba5b4b net.server_select: Add a function to just lock a stream for reading 16 years ago
Matthew Wild 6ef7cc4d5a net.server_select: Make bufferlen() method return, of all things, the buffer length 16 years ago
Matthew Wild 99e33affa4 net.server_select: Fix possibility of losing data sent from a socket just before it closes (thanks Sjoerd Simons) 16 years ago
Matthew Wild fc078849d5 net.server_select: Update conn.close() to use new connection method convention 16 years ago
Matthew Wild 9d32568d5d net.server_select: Rename server.setsend() to server.set_send() for consistency 16 years ago
Matthew Wild 24dba04dcb net.server_select: Bring up to date to new common connection API 16 years ago
Matthew Wild f24860c37c net.server_select: Change addserver() parameters to be compatible with new standard syntax 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
Matthew Wild d855a4785d net.server: A connection is not secure if we delay the TLS handshake 17 years ago
Matthew Wild c017eb2325 net.server: Add getserver() method to find the server listening on the specified port 17 years ago
Matthew Wild e9921f5497 net.server: Fix global access/incorrect parameter 17 years ago
Matthew Wild bbd191b78e net.server: Fix incorrect parameter passing 17 years ago
Matthew Wild e081895191 net.server: Fix global access 17 years ago
Matthew Wild 430114cd5a net.server: Fix potential nil handler usage 17 years ago
Matthew Wild f6cf549599 net.server: Simple logging fix 17 years ago
Matthew Wild cdd063f516 net.server: Remove some debug code which slipped through 17 years ago
Matthew Wild 25de4549ed net.server: Add server.setquitting() to gracefully quit the socket loop 17 years ago