Matthew Wild
|
3d6dafb89a
|
net.server_select: 'listener'->'listeners' (fixes undefined global access)
|
12 years ago |
Matthew Wild
|
972f29756d
|
net.server_{select,event}: Add 'ondetach' callback for listener objects, to notify them when another listener is being assigned to a connection
|
12 years ago |
Matthew Wild
|
5647cd2287
|
net.server_select/event: Switch sender mode to *a when reading, to make sure we get all available data
|
12 years ago |
Kim Alvefur
|
8cf56e87ac
|
net.server_{select,event}: Add compat code for supporting the same client port API on connections
|
12 years ago |
Matthew Wild
|
ceba28fe83
|
net.server_select: Don't remove the socket from sendlist when we might have data in the buffer (we'll now let sendbuffer() take care of that) (thanks daurnimator)
|
12 years ago |
Kim Alvefur
|
d7d15e2ec7
|
net.server_select: Make sure there is a server to pause when hitting maxfd (Thanks elghinn)
|
13 years ago |
Waqas Hussain
|
10338aeb7f
|
net.server_select: Ensure _maxfd = math.huge on Windows, always.
|
13 years ago |
Waqas Hussain
|
6fb891d747
|
net.server_select: Don't limit max file descriptor number on Windows.
|
13 years ago |
Kim Alvefur
|
e0eed7d73c
|
net.server*: Allow the TCP backlog parameter to be set in the config
|
13 years ago |
Matthew Wild
|
62494defe9
|
net.server_select: Don't call onconnect twice for SSL connections
|
13 years ago |
Matthew Wild
|
452d2d223c
|
Backed out changeset f2631a14b953
|
13 years ago |
Kim Alvefur
|
998b0c1b8b
|
net.server_select: Don't call onconnect twice on SSL connections
|
13 years ago |
Waqas Hussain
|
f05ca62b3b
|
net.server_select: Add and improve some comments.
|
13 years ago |
Waqas Hussain
|
27f39498ff
|
net.server_select: Move socket timeout cleanup code out of a timer, into the select loop (which makes util.timer the only timer using server_select._addtimer).
|
13 years ago |
Kim Alvefur
|
cc4fd7b37d
|
net.server_select: Normalize indentation
|
13 years ago |
Kim Alvefur
|
3ec1c834e6
|
net.server, _select: Reorganise configuration of server_select to be more like server_event
|
13 years ago |
Kim Alvefur
|
2df2e726b4
|
net.server_select: Optimization, clean bufferqueue when it makes sense.
|
13 years ago |
Kim Alvefur
|
e89b805d06
|
net.server_select: Use # operator instead of string.len
|
13 years ago |
Kim Alvefur
|
a003acb385
|
net.server_select: Limit global number of sockets passed to select.
|
13 years ago |
Kim Alvefur
|
4f6cb9d1c6
|
net.server_select: Be less aggressive about server pause
|
13 years ago |
Kim Alvefur
|
5a496dff07
|
net.server_select: Remove useless duplicated settimeout() call
|
13 years ago |
Kim Alvefur
|
97a1cc8500
|
net.server_select: Fix global access
|
13 years ago |
Kim Alvefur
|
b0249c4d4a
|
net.server_select: Pause servers while they are full
|
13 years ago |
Kim Alvefur
|
387897f53f
|
net.server_select: Add pause and resume methods
|
13 years ago |
Kim Alvefur
|
607ba9efcd
|
net.server_select: Better names for config options (thanks MattJ)
|
13 years ago |
Matthew Wild
|
1901905a00
|
net.server_select: Remove unused variables and imports
|
14 years ago |
Matthew Wild
|
f6ec86d690
|
net.server_select: Remove extraneous variable
|
14 years ago |
Matthew Wild
|
21fb56dc4a
|
net.server_select: Never call ondisconnect() directly, go via handler:close() or handler:force_close() - fixes cases where ondisconnect() could be called multiple times for the same connection, leading to issues with s2sout retry logic.
|
14 years ago |
Matthew Wild
|
351865f510
|
net.server_select, net.server_event: Change semantics of conn:close() - always call ondisconnect (with err == nil), and never close with data in send buffer (i.e. 'now' parameter removed)
|
14 years ago |
Matthew Wild
|
d227ac95d5
|
net.server_select: Don't close client connections when closing a server (it wasn't working anyway)
|
14 years ago |
Matthew Wild
|
62ecc088db
|
net.server_select: Call ondisconnect handler, even if we closed the socket ourselves (fixes HTTP session hoarding, thanks Maranda)
|
14 years ago |
Matthew Wild
|
d3a6cd662d
|
net.server_select: Return error when SSL handshake fails immediately (thanks Zash)
|
14 years ago |
Matthew Wild
|
3df4f1a43c
|
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)
|
14 years ago |
Matthew Wild
|
ea7212be3b
|
net.server_select: Remove server from _server table when closing
|
14 years ago |
Matthew Wild
|
52f8051636
|
net.server_select: Autostart SSL negotiation as the last part of socket setup to avoid a traceback (#262) (thanks Maranda)
|
14 years ago |
Waqas Hussain
|
a8fc120451
|
net.server_event, net.server_select: Fixed some global pollution.
|
14 years ago |
Waqas Hussain
|
e1dc78b6a2
|
net.server_select: Minor whitespace fix.
|
14 years ago |
Matthew Wild
|
1c3f397779
|
net.server_select: Never call onincoming with nil data when a listener doesn't have an onconnect handler
|
14 years ago |
Matthew Wild
|
80363abfd9
|
net.server_select: Remove socket from sendlist before calling listener callbacks (thanks darkrain)
|
15 years ago |
Matthew Wild
|
cd13e57e20
|
net.server_select: Merge straight-SSL and starttls code paths, also fixes onconnect being called before handshake completion for straight-SSL
|
15 years ago |
Matthew Wild
|
25a5e8060f
|
net.server_select: Update error logging logic during SSL handshake (now shows correctly when a handshake exceeded max. allowed iterations)
|
15 years ago |
Matthew Wild
|
346458a5c3
|
net.server_select: Small fix to SSL handshake logic, read/wrote were being checked despite it not being possible for them to be other than nil
|
15 years ago |
Matthew Wild
|
7752f416f0
|
net.server_select: Do not set 'ssl' flag simply when assigning an sslctx to a handler, it doesn't mean anything
|
15 years ago |
Florian Zeitz
|
5855fda78f
|
connlistener, server_select, prosody: Add support for binding to multiple addresses
|
15 years ago |
Matthew Wild
|
457036a41d
|
net.server_select: Expose step() function (thanks ?ukasz)
|
15 years ago |
Matthew Wild
|
72dc9416ef
|
net.server_select, net.server_event: Silence 'error during ssl handshake' for wantread and wantwrite
|
15 years ago |
Matthew Wild
|
acbe5b3dff
|
net/server_select.lua: Reduce select() timeout back to 1s
|
15 years ago |
Matthew Wild
|
22a83d733c
|
net/server_select.lua: Reduce select() timeout back to 1s
|
15 years ago |
Waqas Hussain
|
a00d1e5354
|
net.server_select: Set select() timeout to 3600 by default.
|
15 years ago |
Waqas Hussain
|
5400d9c376
|
net.server_select: Set select() timeout to 3600 by default.
|
15 years ago |