Commit Graph

134 Commits (47c821cf549c8ea4645190a8f4bb18b7a2eaee2b)

Author SHA1 Message Date
Kim Alvefur a6e9f2a8cd net.server_event: Also replace 'ondrain' when setting new listeners (thanks Ge0rG) 9 years ago
Kim Alvefur 4cb62f55f6 net.server_event: Restore destruction of socket on read timeout (lost since e67891ad18d6) (thanks Ge0rG) 9 years ago
Kim Alvefur 9f66da1df0 net.server_event: Check the buffer *length*, not the buffer itself (Fixes 100% cpu usage introduced in 65abd9d7bf88) 10 years ago
Kim Alvefur 376dab8b5e net.server_event: Return the correct value as timeout 10 years ago
Kim Alvefur 49aa55a51d net.server_event: Fix traceback if event re-added during starttls 10 years ago
Kim Alvefur 2bf3239f76 net.server_event: Re-add write event if writebuffer is non-empty after write (eg due to writes from ondrain callback) (fixes #661) 10 years ago
Kim Alvefur e83b7f442b net.server_event: Return true from conn:resume() to indicate success 10 years ago
Kim Alvefur 52f557dece net.server_event: Prevent resuming connections without readcallback, eg closed connections (fixes #590) 10 years ago
Kim Alvefur b1ec0f7993 net.server_event: Schedule another read callback if there is still data left in buffer after reading (fixes #583 for real) 10 years ago
Kim Alvefur 8e0208a805 net.server_event: Collect entire one line function on one line 10 years ago
daurnimator a96b736661 server_event: addclient: wrapclient already calls startconnection for us [backported from trunk] 12 years ago
Kim Alvefur 5c224f9d18 server_event: Split long list of assignments into multiple lines for readability 10 years ago
Kim Alvefur dc117b2dc5 server_event: Fix indentation (again) 10 years ago
Matthew Wild 3b1c2ebbd9 net.server_event: Add conn.type == 'server' for server sockets (fixes closeallservers() ) 10 years ago
Kim Alvefur e80179ba6e server_event: Fix indentation 10 years ago
Kim Alvefur 5e13a9ffc0 server_event: Put function keyword on same line as the coroutine.wrap it's being passed to 10 years ago
Kim Alvefur 0da792c456 server_event: Normalize indentation 10 years ago
Kim Alvefur 8b4045e568 server_event: Remove unused argument [luacheck] 10 years ago
Kim Alvefur d15bb4aaf1 server_event: Comment out the unused vdebug function [luacheck] 10 years ago
Kim Alvefur 676b2f5857 server_event: Remove unused former argument (fixes global access) [luacheck] 10 years ago
Kim Alvefur ede3ce082a server_event: Rename luaevent module variable to avoid name clash [luacheck] 10 years ago
Kim Alvefur 988a7cc8cb server_event: Add luacheck annotations 10 years ago
Kim Alvefur 7ba06d7db1 server_event: Remove needless scoping and indentation 10 years ago
Kim Alvefur 3686bac226 server_event: Move local references to various functions to top of file 10 years ago
Kim Alvefur 68b04bf6c6 server_event: Replace implementation of ordered set with a simple table set 10 years ago
Matthew Wild 257d0f104b 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 57a4449fce net.server_select/event: Switch sender mode to *a when reading, to make sure we get all available data 12 years ago
Kim Alvefur cf7efc33b2 net.server_{select,event}: Add compat code for supporting the same client port API on connections 12 years ago
Kim Alvefur a1784f1aa0 Backed out changeset a5b5bce71a11 12 years ago
Kim Alvefur d495e6ca50 net.server_event: Rename conn:port() -> conn:clientport() to match server_select 12 years ago
Kim Alvefur 24056ae3ad net.server_{select,event}: addclient: Use getaddrinfo to detect IP address type if no socket type argument given. (Argument must be given for non-TCP) 12 years ago
Kim Alvefur ae81ea6eda net.server_{select,event}: addclient: Add argument for overriding socket type 12 years ago
daurnimator 03b5e2a257 net/server_event: pcall require ssl rather than relying on globals 12 years ago
daurnimator effb3a2541 net/server_event: add_client should have same arguments no-matter the server backend 12 years ago
Kim Alvefur 7105732151 net.server_{select,event}: Don't rely on LuaSocket and LuaSec being present in the globals table 11 years ago
Florian Zeitz 1d833bb807 Remove all trailing whitespace 13 years ago
Kim Alvefur 4b01c2691b net.server_event: Pass ondrain handler from listener 13 years ago
Matthew Wild 99eea8313f net.server_event: Add support for listener.onreadtimeout(conn), which can return true to prevent the connection from being closed when a read timeout occurs 13 years ago
Kim Alvefur a7340fef1c net.server*: Allow the TCP backlog parameter to be set in the config 13 years ago
Kim Alvefur bc1d598375 net.server_event: Remove unused local 13 years ago
Waqas Hussain a4bef98559 net.server_event: Optimize socket write buffers (don't do buf=buf..newdata). 13 years ago
Kim Alvefur a79da674d1 net.server_event: Destroy interfaces immediately, fixes reopening of servers. 13 years ago
Kim Alvefur afd25ad763 net.server_event: Remove comments about not closing event handlers from within callbacks, fixed in luaevent 13 years ago
Matthew Wild 28dfdedc65 net.server_event: Replace usage of string.len() with # operator 14 years ago
Kim Alvefur 7f3c5bae63 net.server_event: Don't emit empty packets, check for errors first. (fixes #287) 14 years ago
Matthew Wild 8a79164f2b net.server_event: Remove unused variables and imports 14 years ago
Matthew Wild 73c5470e83 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 81a34bee5e net.server_event: Internal changes to get plain-SSL outgoing connections working (as for HTTPS) 14 years ago
Matthew Wild 6e38fa6d6b net.server_event: Assume wrapclient() is taking a new connection, and call onconnect when appropriate (to match server_select) 14 years ago
Matthew Wild 824fdebc55 net.server_event: Do not automatically close clients when closing a server port 14 years ago