Commit graph

277 commits

Author SHA1 Message Date
Kim Alvefur
bf7da12bdf net.server_epoll: Wrap calling of ondisconnect listener in additional indirection 2016-08-14 01:09:55 +02:00
Kim Alvefur
fd025274c6 net.server_epoll: Continue reading after a slight delay if there is buffered data after a read 2016-08-12 01:13:26 +02:00
Kim Alvefur
488af5f9a8 net.server_epoll: Replace any previous pausefor timer 2016-08-12 01:11:59 +02:00
Kim Alvefur
a590be3b18 net.server_epoll: Fix calculation of next timer event 2016-08-12 00:25:19 +02:00
Kim Alvefur
51aabf600a net.server_epoll: Don't mistake success for an error 2016-08-11 22:49:26 +02:00
Kim Alvefur
6d0852cbc2 net.server_epoll: Make addclient conform to API (expected by net.http.request) 2016-08-10 21:11:09 +02:00
Kim Alvefur
c2d5f9a1fa net.server_epoll: Some logging when closing a connection 2016-08-10 21:10:17 +02:00
Kim Alvefur
d60907bc22 net.server_epoll: Use first writable event to signal onconnect 2016-08-10 20:59:54 +02:00
Kim Alvefur
f14ac4df60 net.server_epoll: Make addclient use wrapclient 2016-08-10 20:57:05 +02:00
Kim Alvefur
57c3c911f5 net.server_epoll: Log epoll_ctl() calls and return values 2016-08-10 20:55:31 +02:00
Kim Alvefur
3253630d18 net.server_epoll: Rename arguments and varibles for consistensy 2016-08-10 20:55:07 +02:00
Kim Alvefur
07e243fa97 net.server_epoll: Remove last traces of code for bypassing buffering on writable sockets 2016-08-10 20:47:40 +02:00
Kim Alvefur
73579026ea net.server_epoll: New experimental server backend 2016-08-10 16:57:16 +02:00
Kim Alvefur
e1d1f3d4f7 Merge 0.11->trunk 2019-03-28 17:28:20 +01:00
Kim Alvefur
50f89a9f96 net.server_epoll: Optimize timer handling 2019-03-12 23:13:51 +01:00
Kim Alvefur
5d2608e150 net.server: Only add alternate SNI contexts if at least one is provided
Fixes use of <starttls/> when a client sends SNI, which would send no certificate otherwise.
2019-03-11 13:00:51 +01:00
Kim Alvefur
a1ef28548c net.server_epoll: Add support for SNI (#409) 2019-03-10 19:35:34 +01:00
Kim Alvefur
3cb132326d net.server: New API for creating server listeners
server.listen(interface, port, listeners, options);
2018-09-13 21:16:37 +02:00
Kim Alvefur
ce03153c84 net.server_epoll: Increase send_timeout to 3 minutes (to match server_event)
The separate connect_timeout means we can afford a longer send_timeout
2019-02-09 20:54:35 +01:00
Kim Alvefur
a40e044c03 net.server_epoll: Separate timeout for initial connection attempts
server_event has this separation already
2019-02-09 20:34:00 +01:00
Kim Alvefur
80f76cc9ee Merge 0.11->trunk 2019-02-09 19:36:35 +01:00
Kim Alvefur
e6e285898b net.server_epoll: Bail on callback error
An error calling a callback would be considered a truthy return value,
which is not right.
2018-12-08 21:28:48 +01:00
Kim Alvefur
726a7996dd net.server_epoll: Call onconnect right after accept()ing a new client 2018-12-08 21:17:39 +01:00
Kim Alvefur
b9beadc7c8 Merge 0.11->trunk 2018-11-30 19:43:12 +01:00
Kim Alvefur
fb768f193f net.server_epoll: Use method to update peername on connect 2018-10-29 02:13:09 +01:00
Kim Alvefur
1f9b825c34 net.server_epoll: Reschedule delayed timers relative to current time
This should normally never happen, but can be reproduced by suspending
the process a while.
2018-10-28 18:22:17 +01:00
Kim Alvefur
3899c7ac4b net.server: Add an API for holding writes of outgoing data 2018-10-25 15:12:59 +02:00