Matthew Wild
|
673df8d1d2
|
net.server_event: Fire onincoming() callback for new connections as opposed to the new onconnect() - let's change this for a future version though
|
16 years ago |
Matthew Wild
|
606d78db9c
|
net.server_event: Fix another instance of creating an SSL context - certmanager now does this
|
16 years ago |
Matthew Wild
|
e7b5d8c9c1
|
net.server_event: Fix traceback in creating SSL context
|
16 years ago |
Matthew Wild
|
6a135d14bd
|
net.server_event: Fixes for traceback with no LuaSec
|
16 years ago |
Matthew Wild
|
4ee9b095dd
|
net.server_event: Update for compatibility with new server API
|
16 years ago |
Matthew Wild
|
fd8c12ab1a
|
net.server_event: Trailing whitespace
|
16 years ago |
Matthew Wild
|
bf63594f0f
|
net.server_event: Support :setlistener() method on connections to work with port multiplexing
|
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
|
d532b1173a
|
net.server_event: Replace all calls to _start_ssl() to its bigger brother starttls() - fixes 5223 w/ libevent
|
16 years ago |
Matthew Wild
|
c13e080420
|
net.server_event: Remove access to starttls method when starttls is negotiated - fixes offering starttls to client who are already using it (thanks darkrain and Adium)
|
16 years ago |
Matthew Wild
|
a00a7f76bc
|
net.server_event: Add conn:setoption() to set options on the socket
|
16 years ago |
Matthew Wild
|
20a9ef3561
|
net.server_event: Add server.hook_signal(signal_num, handler) to wrap libevent's signal-catching interface
|
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
|
93b148715f
|
net.server_event: Be sure to fire onincoming for backwards-compatibility with pre-onconnect listeners (thanks darkrain/mod_console)
|
16 years ago |
Matthew Wild
|
e0c9c76b44
|
net.server_event: Call listener.onconnect if it exists, otherwise stick to listener.onincoming
|
16 years ago |
Waqas Hussain
|
13c9d77ff4
|
net.server_event: Fixed spelling fail.
|
16 years ago |
Matthew Wild
|
3a47c0c173
|
net.server_event: Don't re-try a write if the connection closed (thanks Flo)
|
16 years ago |
Matthew Wild
|
ef00aa87e4
|
net.server_event: Bump timeout values up somewhat
|
16 years ago |
Matthew Wild
|
52817c5517
|
net.server_event: Fix some global accesses
|
16 years ago |
Matthew Wild
|
f1871510b7
|
net.server_event: Improve and fix potential traceback in logging of new incoming connections
|
16 years ago |
Matthew Wild
|
43052f3253
|
net.server_event: Add lock_read() method to connections
|
16 years ago |
Matthew Wild
|
ec83dc97ee
|
net.server_event: Pass false as connection error to disconnect handler if close was initiated by us
|
16 years ago |
Matthew Wild
|
bdcaada368
|
net.server_event: Increase SSL handshake timeout to 30s, make handshake round-trip count configurable, and bump connect timeout to 20s (thanks Flo)
|
16 years ago |
Matthew Wild
|
894d946691
|
net.server_event: Add properties like _ip and _port to server objects too
|
16 years ago |
Matthew Wild
|
c5377ba75f
|
net.server_event: Add :serverport() method to be compatible with old API
|
16 years ago |
Matthew Wild
|
b0055aa7b5
|
net.server_event: Load ssl/socket libraries if not already available
|
16 years ago |
Matthew Wild
|
997f8c16d6
|
net.server_event: Add get_backend() method
|
16 years ago |
Matthew Wild
|
0ec240d5e3
|
Rename closeallservers to closeall in the public API (same as net.server_select) and expose setquitting
|
16 years ago |
Matthew Wild
|
7afd141b85
|
net.server_event: Add setquitting() function to be compatible with net.server_select
|
16 years ago |
Matthew Wild
|
c990578ae0
|
net.server_event: Fix closeallservers() to work correctly after the giant refactorizification
|
16 years ago |
Matthew Wild
|
0e534e4ba5
|
net.server_event: Return "quitting" on loop exit to be compatible with net.server_select, and give Prosody a way to know why the loop broke
|
16 years ago |
Matthew Wild
|
c0780f8d84
|
net.server_select, net.server_event: Convert to unix line endings from Windows
|
16 years ago |
Matthew Wild
|
1ecc27bdca
|
net.server_event: Port fix in 2dc9bbf25447 to libevent-based backend
|
16 years ago |
Matthew Wild
|
546954e85c
|
net.server_event: Add addclient/wrapclient compatible with server_select, DNS and s2s should now work with libevent \o/
|
16 years ago |
Matthew Wild
|
422a717900
|
net.server_event: tostring() some debug logging parameters
|
16 years ago |
Matthew Wild
|
7dae521ba5
|
net.server_event: Add set_send() for compatibility with server_select
|
16 years ago |
Matthew Wild
|
944ab8a84e
|
net.server_event: Hide starttls function when the connection is not SSL-enabled
|
16 years ago |
Matthew Wild
|
e6d079f887
|
net.server_event: Count the number of client connections *upwards* :)
|
16 years ago |
Matthew Wild
|
05348c61f3
|
net.server_handler: Add stub handlers as fallbacks for those listeners don't implement
|
16 years ago |
Matthew Wild
|
df4d4cd445
|
net.server_event: Fix to make ontimeout() listener callback work
|
16 years ago |
Matthew Wild
|
2b683fc8e6
|
net.server_event: Comment accidentally uncommented vdebug()
|
16 years ago |
Matthew Wild
|
0f840b5fe7
|
net.server_event: Handle and ignore 'wantread' error from receive(), treat as a timeout
|
16 years ago |
Matthew Wild
|
26277a7950
|
net.server_event: Remove premature non-optimisation
|
16 years ago |
Matthew Wild
|
07f5e5f4c8
|
net.server_event: Fix moved line caused by Mercurial's crecord and my selective commits
|
16 years ago |
Matthew Wild
|
3fe8e55754
|
net.server_event: Obey nowriting/nointerface for locks in interface methods
|
16 years ago |
Matthew Wild
|
4d67d89061
|
net.server_event: Use conn property for send/receive instead of caching, fixes trying to use original socket after SSL-wrapping
|
16 years ago |
Matthew Wild
|
e2d6a0c9c7
|
net.server_event: Set startsslcallback property to nil when we're done handshaking, otherwise we keep trying to repeat the handshake
|
16 years ago |