Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | net.server: Disable epoll signalfd handling by default until problems resolved | Kim Alvefur | 2024-03-01 | 1 | -0/+5 |
| | |||||
* | net.server: Handle loading from outside Prosody (e.g. Verse) | Kim Alvefur | 2023-05-20 | 1 | -15/+20 |
| | | | | | server_select only depending on LuaSocket generally makes it more portable, so fall back to that if util.poll can't be found. | ||||
* | net: Prefix module imports with prosody namespace | Kim Alvefur | 2023-03-17 | 1 | -9/+9 |
| | |||||
* | net: refactor sslconfig to not depend on LuaSec | Jonas Schäfer | 2022-04-02 | 1 | -0/+7 |
| | | | | | | | | | | | This now requires that the network backend exposes a tls_builder function, which essentially wraps the former util.sslconfig.new() function, passing a factory to create the eventual SSL context. That allows a net.server backend to pick whatever it likes as SSL context factory, as long as it understands the config table passed by the SSL config builder. Heck, a backend could even mock and replace the entire SSL config builder API. | ||||
* | net.server_select: Deprecate and warn about it | Kim Alvefur | 2021-09-03 | 1 | -0/+2 |
| | | | | | | | | | To be removed in the future, but not right now. Give the log warning a chance to prod anyone who might have network_backend="select" in their config first. There's also things built on Verse which uses server_select.lua, which will need to be updated somehow. | ||||
* | net.server: Pikc server_epoll as unconditional default | Kim Alvefur | 2021-09-03 | 1 | -2/+1 |
| | | | | | | | Previously it would have gone for server_select if util.poll was for some reason not available, which should be never these days. And even if it was, best to flush it out by throwing loud errors so users notice. Then they can work around it by using select until we delete that one. | ||||
* | net.server: Fall back to default backend from libevent instead of always select | Kim Alvefur | 2021-09-03 | 1 | -2/+2 |
| | | | | | | | | Fixes that selecting libevent when unavaibalbe would fall back to select instead of epoll, even if that's available. This way, we only have to update it in once place when choosing a new default. | ||||
* | net.server: Switch to epoll backend by default | Matthew Wild | 2020-06-01 | 1 | -1/+5 |
| | | | | (if util.poll is found) | ||||
* | net.server: Throw error when loading outside Prosody or Prosody config not ↵ | Matthew Wild | 2018-08-19 | 1 | -2/+9 |
| | | | | loaded | ||||
* | net.server: Init a local logger (fixes traceback on attempt to warn about ↵ | Kim Alvefur | 2018-04-05 | 1 | -0/+1 |
| | | | | missing luaevent due to later loggingmanager initialization) | ||||
* | Backed out changeset a0f728c3aa69 in favor of 580c13ed0ca1 | Kim Alvefur | 2018-03-29 | 1 | -7/+3 |
| | |||||
* | net.server: Try to require configmanager instead checking for the prosody ↵ | Kim Alvefur | 2018-03-23 | 1 | -3/+7 |
| | | | | global which does not yet exist when net.server is loaded now | ||||
* | net.server: Monkey-patch in a fallback get_backend method if missing | Kim Alvefur | 2016-08-10 | 1 | -0/+5 |
| | |||||
* | net.server: Allow arbitrary network backends to be configured | Kim Alvefur | 2016-08-10 | 1 | -1/+2 |
| | |||||
* | net.server: Only update configuration if server backend supports changing ↵ | Kim Alvefur | 2016-08-10 | 1 | -1/+1 |
| | | | | settings | ||||
* | net.server: Fix whitespace | Kim Alvefur | 2016-08-10 | 1 | -22/+22 |
| | |||||
* | Merge 0.10->trunk | Kim Alvefur | 2016-01-22 | 1 | -22/+22 |
|\ | |||||
| * | Merge 0.9->0.10 | Kim Alvefur | 2016-01-22 | 1 | -1/+1 |
| |\ | |||||
| | * | server_select: Retry accepting clients from full servers after 10s (matches ↵ | Kim Alvefur | 2016-01-22 | 1 | -1/+1 |
| | | | | | | | | | | | | libevent behaviour) | ||||
* | | | net/server: Handle lack of util.signal correctly | daurnimator | 2014-10-22 | 1 | -4/+10 |
| | | | |||||
* | | | net/server: Remove print | daurnimator | 2014-10-22 | 1 | -1/+0 |
| | | | |||||
* | | | net.server: Rename 'server' config option to 'network_backend' (to select ↵ | Matthew Wild | 2014-10-22 | 1 | -1/+1 |
| | | | | | | | | | | | | which net.server implementation to use) | ||||
* | | | net/server: If server.hook_signal exists, overwrite signal.signal; else make ↵ | daurnimator | 2014-10-21 | 1 | -16/+18 |
| | | | | | | | | | | | | | | | | | | | | | server.hook_signal == signal.signal No longer server_event specific server.hook_signal will always exist | ||||
* | | | net/server: Split up different backends in a nicer way. Add global config ↵ | daurnimator | 2014-10-17 | 1 | -38/+51 |
|/ / | | | | | | | option 'server' | ||||
* / | Remove all trailing whitespace | Florian Zeitz | 2013-08-09 | 1 | -1/+1 |
|/ | |||||
* | net.server*: Allow the TCP backlog parameter to be set in the config | Kim Alvefur | 2013-04-27 | 1 | -0/+1 |
| | |||||
* | net.server, _select: Reorganise configuration of server_select to be more ↵ | Kim Alvefur | 2013-03-23 | 1 | -3/+11 |
| | | | | like server_event | ||||
* | net.server: No sections in config anymore | Kim Alvefur | 2013-03-23 | 1 | -2/+2 |
| | |||||
* | net.server: Don't return anything from config-reloaded hook, fixes logrotate ↵ | Kim Alvefur | 2012-12-29 | 1 | -2/+1 |
| | | | | heisenbug | ||||
* | net.server: Fix when no network_settings set and using libevent | Kim Alvefur | 2012-11-23 | 1 | -1/+1 |
| | |||||
* | net.server: Make server_* configurable in the config file. | Kim Alvefur | 2012-11-23 | 1 | -0/+32 |
| | |||||
* | net.server: server_select != server_event (thanks Nulani, Florob) | Matthew Wild | 2012-05-03 | 1 | -1/+1 |
| | |||||
* | net.server, net.timer, net.server_select: Rearrange dependencies between ↵ | Matthew Wild | 2012-05-03 | 1 | -14/+2 |
| | | | | 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) | ||||
* | net.server: Don't load configmanager if not running inside Prosody, assume ↵ | Matthew Wild | 2010-08-23 | 1 | -1/+1 |
| | | | | server_select | ||||
* | Merge 0.6->0.7 | Matthew Wild | 2010-03-22 | 1 | -0/+7 |
|\ | |||||
| * | Update copyright headers for 2010 | Matthew Wild | 2010-03-22 | 1 | -1/+1 |
| | | |||||
| * | net.server_select: Restore checks for wantread/timeout errors on receive | Matthew Wild | 2009-12-03 | 1 | -1/+1 |
| | | |||||
| * | net.server_select: Make bufferlen() method return, of all things, the buffer ↵ | Matthew Wild | 2009-12-03 | 1 | -1/+1 |
| | | | | | | | | length | ||||
| * | net.server_select: Fix possibility of losing data sent from a socket just ↵ | Matthew Wild | 2009-12-03 | 1 | -1/+1 |
| | | | | | | | | before it closes (thanks Sjoerd Simons) | ||||
* | | net.server: Remove redundant commented code and some trailing whitespace | Matthew Wild | 2010-02-15 | 1 | -2/+1 |
| | | |||||
* | | net.server: When libevent backend is in use, override signal.signal to use ↵ | Matthew Wild | 2010-01-10 | 1 | -0/+17 |
| | | | | | | | | server.hook_signal | ||||
* | | net.server: Log an error when libevent is requested, but luaevent is ↵ | Waqas Hussain | 2009-11-24 | 1 | -2/+9 |
| | | | | | | | | unavailable, and don't load luaevent when not requested. | ||||
* | | net.server: Add some comments to explain to waqas how it all works :) | Matthew Wild | 2009-11-22 | 1 | -1/+6 |
| | | |||||
* | | net.server: Small fix for addtimer() compatibility code | Matthew Wild | 2009-11-21 | 1 | -1/+1 |
| | | |||||
* | | net.server: New net.server to choose the appropriate library from ↵ | Matthew Wild | 2009-11-21 | 1 | -0/+21 |
| | | | | | | | | server_select/server_event based on the availability of luaevent and the use_libevent config option | ||||
* | | net.server: Rename to net.server_select | Matthew Wild | 2009-11-21 | 1 | -914/+0 |
|/ | |||||
* | server.lua: Standardise on 'client' variable to refer to the socket, makes ↵ | Matthew Wild | 2009-10-26 | 1 | -3/+3 |
| | | | | the code a bit cleaner | ||||
* | server.lua: Add addsocket(), refactor all code to use it, fixes nasty socket ↵ | Matthew Wild | 2009-10-26 | 1 | -21/+18 |
| | | | | object leak - moral of the story is to not duplicate code, and not prematurely optimise. But you knew that already didn't you? | ||||
* | net.server: Allow changing the sslctx of a connection after it has been ↵ | Matthew Wild | 2009-10-17 | 1 | -16/+22 |
| | | | | established | ||||
* | Merge with 0.5 | Matthew Wild | 2009-10-14 | 1 | -7/+9 |
|\ |