Commit Graph

39 Commits (565c65baa1cf05abd5490aac02024e1ecabdcd3e)

Author SHA1 Message Date
Matthew Wild 40fa07ecfc net.server_select: Add server.step() to run through a single iteration of the event loop 16 years ago
Matthew Wild c3d3544fb0 net.server_select, net.server_event: Remove set_mode() call from server.link()... it can cause the last chunk of data to be discarded if shorter than buffersize (thanks to Zash for the debugging) 16 years ago
Matthew Wild 7ddf7d4745 net.server_select: Remove 'now' parameter from starttls(), and base it on whether the sendbuffer is empty instead 16 years ago
Matthew Wild b0c03f83ce net.server_select: Ensure that onconnect is called for server sockets as well as clients, rather than onincoming. Fixes mod_console traceback, issue #197 16 years ago
Matthew Wild e563e751d0 net.server_select: Clean up buffer and fire drained callback on successful write before we try and start TLS negotiation (if negotiation fails instantly then we can be left without a handler to use for cleanup) (thanks dersd) 16 years ago
Matthew Wild 10f55df529 net.server_select: Fix a snippet of code that was living at the wrong indentation level 16 years ago
Waqas Hussain 41fe87d3c5 net.server_select: Remove some debugging code. 16 years ago
Matthew Wild c900263556 net.server_select: Fix typo affecting connections with an onconnect listener that have data pending in the sendbuffer 16 years ago
Matthew Wild a22e222865 net.server_select, net.server_event: Add server.link() to link 2 connections with an intermediate buffer of the specified size 16 years ago
Matthew Wild 3c7eb58b08 net.server_select, net.server_event: Support for ondrain listener callback for when send buffer is empty 16 years ago
Matthew Wild 242d67b43e net.server_select, net.server_event: Rename :pattern() method to :set_mode() for select backend, and add :set_mode() to event backend 16 years ago
Matthew Wild c51d0beea7 net.server_select, net.server_event: Support for :pause() and :resume() on connections 16 years ago
Matthew Wild 6c9b44d630 net.server_select: Support for listener.onconnect 16 years ago
Tobias Markmann 3a972b1742 util.sasl: 2009 -> 2010 in copyright header. 16 years ago
Matthew Wild c071b4638d net.server_select: Fix for traceback when a read returns an error and no data (thanks dersd) 16 years ago
Matthew Wild 70e49af539 net.server_select: Fix typo 16 years ago
Matthew Wild 9d6219b596 net.server_select: Fix calling method of some handler.close()s 16 years ago
Matthew Wild 89d2043ed8 net.server_select: Small indentation fix 16 years ago
Matthew Wild 0a2515bd97 net.server_select: Fix traceback with no LuaSec available (thanks Nolan) 16 years ago
Matthew Wild 7f10afa423 net.server_select: Only allow starttls if luasec is available (thanks Nolan) 16 years ago
Matthew Wild 66e4eb082a net.server_select: *Major* whitespace refactoring to meet Prosody's coding style guidelines, we now have tabs 16 years ago
Matthew Wild 0e63f231e1 net.server_select: listener.status -> listener.onstatus for consistency 16 years ago
Matthew Wild 9ce0027521 net.server_select: Report whether a new listener uses SSL or not in the log message 16 years ago
Matthew Wild 5c117c0f25 net.server_select: Remove startssl parameter to the client/server creation functions - passing a sslctx now indicates you want to use SSL from the start 16 years ago
Matthew Wild 4ec0f47224 net.server_{select,event}: Fail gracefully if socket doesn't have a setoption method (LuaSec issue I think) 16 years ago
Matthew Wild 38b5bebb5e net.server_select: Add conn:setoption() to set options on the socket 16 years ago
Matthew Wild 62b1c8d4dc net.server_select: Fix oops in last commit 16 years ago
Matthew Wild f5a5f7d239 net.server_select: Allow setting the logger using server.setlogger 16 years ago
Matthew Wild 52ae20cb47 net.server_select: Add get_backend() method 16 years ago
Matthew Wild c0780f8d84 net.server_select, net.server_event: Convert to unix line endings from Windows 16 years ago
Matthew Wild 90cf9371a5 net.server_select: Restore checks for wantread/timeout errors on receive 16 years ago
Sjoerd Simons 2c89ba5b4b net.server_select: Add a function to just lock a stream for reading 16 years ago
Matthew Wild 6ef7cc4d5a net.server_select: Make bufferlen() method return, of all things, the buffer length 16 years ago
Matthew Wild 99e33affa4 net.server_select: Fix possibility of losing data sent from a socket just before it closes (thanks Sjoerd Simons) 16 years ago
Matthew Wild fc078849d5 net.server_select: Update conn.close() to use new connection method convention 16 years ago
Matthew Wild 9d32568d5d net.server_select: Rename server.setsend() to server.set_send() for consistency 16 years ago
Matthew Wild 24dba04dcb net.server_select: Bring up to date to new common connection API 16 years ago
Matthew Wild f24860c37c net.server_select: Change addserver() parameters to be compatible with new standard syntax 16 years ago
Matthew Wild 7f86cfbcc0 net.server: Rename to net.server_select 16 years ago
Matthew Wild e61fe22f94 server.lua: Standardise on 'client' variable to refer to the socket, makes the code a bit cleaner 16 years ago
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? 16 years ago
Matthew Wild 466b2ee661 net.server: Allow changing the sslctx of a connection after it has been established 16 years ago
Matthew Wild 68f948425a net.server: Better handling of closing sockets during send 16 years ago
Matthew Wild f25a7309ed net.server: Small logging improvements 16 years ago
Matthew Wild e03f835ae7 net.server: Pass current time to timer callbacks 16 years ago
Matthew Wild 559f264f4b net.server: Increase SSL handshake round-trip limit, and make it configurable 16 years ago
Matthew Wild 2be1fcb5af net.server: Call handler's status() to notify it of ssl handshake success 16 years ago
Matthew Wild ed6bf969af net.server: Provide a way to get sslctx of a client connection 16 years ago
Matthew Wild 0b8c96ecde net.server: Provide a way to get sslctx of a server 16 years ago
Matthew Wild 1d9d763906 net.server: Fix missing concatenation operator in error message 16 years ago