Commit graph

62 commits

Author SHA1 Message Date
Matthias Diene
23a10d0390 net.server: Fail to open port if legacy SSL requested, but SSL not available 2009-07-23 12:01:00 +01:00
Matthew Wild
70f4cd7cb7 net.server: Remove listener from listeners table when calling removeserver 2009-07-23 03:06:49 +01:00
Matthew Wild
7dfac00cff net.server: Set sslctx to false when SSL wrapping fails, to avoid attempting to wrap clients with a broken context 2009-07-23 01:57:09 +01:00
Matthias Diener
88ed977abb net.server: Continue to initialise port listener even when SSL errors occur 2009-07-23 01:29:41 +01:00
Matthew Wild
3f0c5c91e3 net.server: Initiate the handshake when we should, the more correcter fix for the previous correct fix 2009-07-13 21:17:51 +01:00
Matthew Wild
c9d670551e net.server: Fix copyright header line endings and text 2009-07-12 20:32:38 +01:00
Matthew Wild
86905bacbb net.server: Correct fix for SSL traceback earlier 2009-07-12 20:25:02 +01:00
Matthew Wild
390df4ca2e net.server: Don't continue with socket initialisation if SSL handshake failed, fixes nil socket traceback 2009-07-12 15:18:53 +01:00
Matthew Wild
4273b66a6c net.server: Don't close handler if it is already nil when SSL handshake fails 2009-07-12 14:29:42 +01:00
Matthew Wild
e45610ce6e Add copyright header to those files missing one 2009-07-10 03:08:38 +01:00
Matthew Wild
8f7a737f08 net.server: Display server port in error messages 2009-06-04 15:22:04 +01:00
Matthew Wild
d855a4785d net.server: A connection is not secure if we delay the TLS handshake 2009-05-29 14:30:40 +01:00
Matthew Wild
67c94f50f4 Merge with 0.4 2009-05-03 01:11:21 +01:00
Matthew Wild
c017eb2325 net.server: Add getserver() method to find the server listening on the specified port 2009-05-03 01:09:57 +01:00
Matthew Wild
e9921f5497 net.server: Fix global access/incorrect parameter 2009-04-22 20:33:24 +01:00
Matthew Wild
bbd191b78e net.server: Fix incorrect parameter passing 2009-04-22 20:19:33 +01:00
Matthew Wild
e081895191 net.server: Fix global access 2009-04-22 20:19:04 +01:00
Matthew Wild
430114cd5a net.server: Fix potential nil handler usage 2009-04-17 16:11:11 +01:00
Matthew Wild
f6cf549599 net.server: Simple logging fix 2009-04-12 17:03:34 +01:00
Matthew Wild
cdd063f516 net.server: Remove some debug code which slipped through 2009-04-12 03:06:22 +01:00
Matthew Wild
25de4549ed net.server: Add server.setquitting() to gracefully quit the socket loop 2009-04-12 02:54:45 +01:00
Matthew Wild
b1acfe581f net.server: Ensure some logging parameters are strings 2009-04-08 11:22:03 +01:00
Matthew Wild
a40ad27d1e net.server: Allow replacement of send function on an open socket 2009-03-07 19:56:53 +00:00
Matthew Wild
6a5be71308 net.server: Don't call shutdown method on socket if it doesn't have one, eg. for UDP 2009-03-04 12:44:07 +00:00
Matthew Wild
898101d2d8 net.server: Check for potential nil handler on close 2009-03-03 20:12:31 +00:00
Matthew Wild
0a2936fb0f net.server: Fix to make sure we send a string to logging function 2009-03-02 19:49:09 +00:00
Matthew Wild
fffdba514a net.server: Don't retry if client closes socket during SSL handshaking 2009-03-01 23:33:41 +00:00
Matthew Wild
c2b54ca160 net.server: Some fixes for SSL/TLS handshake handling 2009-02-27 18:40:17 +00:00
Matthew Wild
81287473fc net.server: Fix some more potential nil handler accesses 2009-02-18 19:23:29 +00:00
Matthew Wild
d74b1cd4e2 net.server: Fix nil table index assignment 2009-02-09 14:24:49 +00:00
Matthew Wild
af27b13805 net.server: Fix potential fatal error in server.lua 2009-02-09 13:41:05 +00:00
Matthew Wild
c2064aa2cc Fix for nil handler error after close 2009-02-04 18:53:56 +00:00
Matthew Wild
f979ff5f0d server.lua: Comment out unnecessary or very verbose logging, and log the rest as debug level 2009-01-17 14:57:21 +00:00
Matthew Wild
75126c8d05 server.lua: Use Prosody logger for errors, silence non-errors 2009-01-17 14:53:20 +00:00
Matthew Wild
c0dbcb4389 Port to new server.lua, quite some changes, but I believe everything to be working 2009-01-17 04:45:08 +00:00
Matthew Wild
cdc8bc0117 Fixed server.lua to use prosody logger for errors 2009-01-16 05:36:39 +00:00
Matthew Wild
b12f8a8177 Remove some debugging code that slipped in 2008-12-27 21:22:49 +00:00
Matthew Wild
b97b1db2a0 Fix specifying ports in config, and SSL support 2008-12-27 21:20:09 +00:00
Matthew Wild
89eb3c5d00 Remove logging for server.lua 2008-12-27 21:18:12 +00:00
Matthew Wild
b922b642ef Fix data loss when closing connection with a large write queue. Thanks albert :) 2008-12-18 20:01:09 +00:00
Matthew Wild
f0b2f41771 Make wraptcpclient set timeout to 0, and add it to the list of exported functions from server.lua 2008-12-13 14:30:59 +00:00
Matthew Wild
1142f30838 Remove old commented code from server.lua 2008-12-06 23:12:46 +00:00
Matthew Wild
d9173986d5 Re-commit TLS fix 2008-12-05 19:55:46 +00:00
Matthew Wild
fe6e46a55f Merge 2008-12-05 19:50:34 +00:00
Matthew Wild
c016526d9d Backed out changeset 099d8a102deb (committed too much) 2008-12-05 19:49:16 +00:00
Matthew Wild
b2afc52730 Don't say we need TLS after we've already started the handshake 2008-12-05 19:40:46 +00:00
Matthew Wild
0d2b952b61 Add TLS socket to readlist before handshake starts, fixes major slow-down on TLS connections 2008-12-05 19:24:01 +00:00
Matthew Wild
32371bbb23 Comment out debug logging for now 2008-12-05 19:22:34 +00:00
Matthew Wild
f334846311 Remove linger option on sockets, made no difference, and I forgot to remove it earlier 2008-12-05 19:21:44 +00:00
Matthew Wild
00fd43edfd Fix GPL'ing MIT/X licensed code :) 2008-12-03 16:44:03 +00:00