Commit graph

119 commits

Author SHA1 Message Date
Matthew Wild
1c68fe88f7 net.server: Throw error when loading outside Prosody or Prosody config not loaded 2018-08-19 14:45:19 +01:00
Kim Alvefur
19deb98aef net.server: Init a local logger (fixes traceback on attempt to warn about missing luaevent due to later loggingmanager initialization) 2018-04-05 15:58:08 +02:00
Kim Alvefur
9974612a93 Backed out changeset a0f728c3aa69 in favor of 580c13ed0ca1 2018-03-29 16:57:18 +02:00
Kim Alvefur
f769dbb269 net.server: Try to require configmanager instead checking for the prosody global which does not yet exist when net.server is loaded now 2018-03-23 18:02:37 +01:00
Kim Alvefur
1a5f725ec4 net.server: Monkey-patch in a fallback get_backend method if missing 2016-08-10 16:52:26 +02:00
Kim Alvefur
0e34cffc70 net.server: Allow arbitrary network backends to be configured 2016-08-10 16:51:38 +02:00
Kim Alvefur
510413f221 net.server: Only update configuration if server backend supports changing settings 2016-08-10 16:50:13 +02:00
Kim Alvefur
fbc5fe997d net.server: Fix whitespace 2016-08-10 16:44:59 +02:00
Kim Alvefur
931549f781 Merge 0.10->trunk 2016-01-22 15:03:02 +01:00
Kim Alvefur
6116ba8cfb Merge 0.9->0.10 2016-01-22 14:49:05 +01:00
Kim Alvefur
c2f7450809 server_select: Retry accepting clients from full servers after 10s (matches libevent behaviour) 2016-01-22 01:59:25 +01:00
daurnimator
ff41d8ed2a net/server: Handle lack of util.signal correctly 2014-10-22 16:00:40 -04:00
daurnimator
96fc243b44 net/server: Remove print 2014-10-22 15:59:51 -04:00
Matthew Wild
1299f0aa60 net.server: Rename 'server' config option to 'network_backend' (to select which net.server implementation to use) 2014-10-22 12:56:41 +01:00
daurnimator
947d91c964 net/server: If server.hook_signal exists, overwrite signal.signal; else make server.hook_signal == signal.signal
No longer server_event specific
server.hook_signal will always exist
2014-10-21 17:26:48 -04:00
daurnimator
54d833e318 net/server: Split up different backends in a nicer way. Add global config option 'server' 2014-10-17 17:30:21 -04:00
Florian Zeitz
1d833bb807 Remove all trailing whitespace 2013-08-09 17:48:21 +02:00
Kim Alvefur
a7340fef1c net.server*: Allow the TCP backlog parameter to be set in the config 2013-04-27 22:46:01 +02:00
Kim Alvefur
39acad1765 net.server, _select: Reorganise configuration of server_select to be more like server_event 2013-03-23 20:06:02 +01:00
Kim Alvefur
6aa6f988a6 net.server: No sections in config anymore 2013-03-23 15:00:22 +01:00
Kim Alvefur
45da10ec05 net.server: Don't return anything from config-reloaded hook, fixes logrotate heisenbug 2012-12-29 19:09:23 +01:00
Kim Alvefur
d5176c487c net.server: Fix when no network_settings set and using libevent 2012-11-23 17:16:22 +01:00
Kim Alvefur
6890dbd62f net.server: Make server_* configurable in the config file. 2012-11-23 01:51:30 +01:00
Matthew Wild
dab0914ee7 net.server: server_select != server_event (thanks Nulani, Florob) 2012-05-03 18:53:36 +01:00
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) 2012-05-03 16:48:34 +01:00
Matthew Wild
5ceda8f546 net.server: Don't load configmanager if not running inside Prosody, assume server_select 2010-08-23 01:06:13 +01:00
Matthew Wild
46c0b8c7f9 Merge 0.6->0.7 2010-03-22 17:24:55 +00:00
Matthew Wild
2bc0606453 Update copyright headers for 2010 2010-03-22 17:06:15 +00:00
Matthew Wild
609442222a net.server: Remove redundant commented code and some trailing whitespace 2010-02-15 22:53:32 +00:00
Matthew Wild
5b19c141d9 net.server: When libevent backend is in use, override signal.signal to use server.hook_signal 2010-01-10 15:26:36 +00:00
Matthew Wild
c82b309e78 net.server_select: Restore checks for wantread/timeout errors on receive 2009-12-03 19:18:18 +00:00
Matthew Wild
3ad72c194c net.server_select: Make bufferlen() method return, of all things, the buffer length 2009-12-03 14:08:54 +00:00
Matthew Wild
d3176587c4 net.server_select: Fix possibility of losing data sent from a socket just before it closes (thanks Sjoerd Simons) 2009-12-03 02:28:34 +00:00
Waqas Hussain
3d08f189a3 net.server: Log an error when libevent is requested, but luaevent is unavailable, and don't load luaevent when not requested. 2009-11-24 14:37:14 +05:00
Matthew Wild
61285cd82a net.server: Add some comments to explain to waqas how it all works :) 2009-11-22 14:42:56 +00:00
Matthew Wild
5c62434466 net.server: Small fix for addtimer() compatibility code 2009-11-21 17:13:21 +00:00
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 2009-11-21 02:39:08 +00:00
Matthew Wild
7f86cfbcc0 net.server: Rename to net.server_select 2009-11-21 02:36:35 +00:00
Matthew Wild
e61fe22f94 server.lua: Standardise on 'client' variable to refer to the socket, makes the code a bit cleaner 2009-10-26 23:35:48 +00:00
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? 2009-10-26 23:29:04 +00:00
Matthew Wild
466b2ee661 net.server: Allow changing the sslctx of a connection after it has been established 2009-10-17 16:21:27 +01:00
Matthew Wild
1f3374a130 Merge with 0.5 2009-10-14 14:12:14 +01:00
Matthew Wild
68f948425a net.server: Better handling of closing sockets during send 2009-10-14 14:09:51 +01:00
Matthew Wild
f25a7309ed net.server: Small logging improvements 2009-10-04 16:05:11 +01:00
Matthew Wild
e03f835ae7 net.server: Pass current time to timer callbacks 2009-10-04 16:04:33 +01:00
Matthew Wild
559f264f4b net.server: Increase SSL handshake round-trip limit, and make it configurable 2009-10-04 16:03:53 +01:00
Matthew Wild
2be1fcb5af net.server: Call handler's status() to notify it of ssl handshake success 2009-10-04 15:58:21 +01:00
Matthew Wild
ed6bf969af net.server: Provide a way to get sslctx of a client connection 2009-10-04 15:56:55 +01:00
Matthew Wild
0b8c96ecde net.server: Provide a way to get sslctx of a server 2009-10-04 15:56:27 +01:00
Matthew Wild
f816a78cb1 Merge with 0.5 2009-10-02 21:24:16 +01:00