Commit Graph

120 Commits (020cd46f0341663d71ebdbd02f67032ddcb4a677)

Author SHA1 Message Date
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
Matthew Wild b1acfe581f net.server: Ensure some logging parameters are strings 17 years ago
Matthew Wild a40ad27d1e net.server: Allow replacement of send function on an open socket 17 years ago
Matthew Wild 6a5be71308 net.server: Don't call shutdown method on socket if it doesn't have one, eg. for UDP 17 years ago
Matthew Wild 898101d2d8 net.server: Check for potential nil handler on close 17 years ago
Matthew Wild 0a2936fb0f net.server: Fix to make sure we send a string to logging function 17 years ago
Matthew Wild fffdba514a net.server: Don't retry if client closes socket during SSL handshaking 17 years ago
Matthew Wild c2b54ca160 net.server: Some fixes for SSL/TLS handshake handling 17 years ago
Matthew Wild 81287473fc net.server: Fix some more potential nil handler accesses 17 years ago
Matthew Wild d74b1cd4e2 net.server: Fix nil table index assignment 17 years ago
Matthew Wild af27b13805 net.server: Fix potential fatal error in server.lua 17 years ago
Matthew Wild c2064aa2cc Fix for nil handler error after close 17 years ago
Matthew Wild f979ff5f0d server.lua: Comment out unnecessary or very verbose logging, and log the rest as debug level 17 years ago
Matthew Wild 75126c8d05 server.lua: Use Prosody logger for errors, silence non-errors 17 years ago
Matthew Wild c0dbcb4389 Port to new server.lua, quite some changes, but I believe everything to be working 17 years ago
Matthew Wild cdc8bc0117 Fixed server.lua to use prosody logger for errors 17 years ago
Matthew Wild b12f8a8177 Remove some debugging code that slipped in 17 years ago
Matthew Wild b97b1db2a0 Fix specifying ports in config, and SSL support 17 years ago
Matthew Wild 89eb3c5d00 Remove logging for server.lua 17 years ago
Matthew Wild b922b642ef Fix data loss when closing connection with a large write queue. Thanks albert :) 17 years ago
Matthew Wild f0b2f41771 Make wraptcpclient set timeout to 0, and add it to the list of exported functions from server.lua 17 years ago
Matthew Wild 1142f30838 Remove old commented code from server.lua 17 years ago
Matthew Wild d9173986d5 Re-commit TLS fix 17 years ago
Matthew Wild c016526d9d Backed out changeset 099d8a102deb (committed too much) 17 years ago
Matthew Wild b2afc52730 Don't say we need TLS after we've already started the handshake 17 years ago
Matthew Wild 0d2b952b61 Add TLS socket to readlist before handshake starts, fixes major slow-down on TLS connections 17 years ago
Matthew Wild 32371bbb23 Comment out debug logging for now 17 years ago
Matthew Wild f334846311 Remove linger option on sockets, made no difference, and I forgot to remove it earlier 17 years ago