1af613d9ce
Fixed printf issues with size_t. Since Windows do not support %zu we have to use %Iu there instead. Solved that with an ugly but needed macro.
Jan Vidar Krey2009-08-20 10:44:44 +02:00
5bd258ca52
Move the network related flags from network.h to connection.h since that is where they are used.
Jan Vidar Krey2009-08-11 21:29:51 +02:00
86ba3ca86f
Complete moving all connection related data out of the hub_user object.
Jan Vidar Krey2009-08-07 00:22:30 +02:00
a297c08bba
Dont use DEBUG messages, instead a much lower level messages for SSL related debug messages.
Jan Vidar Krey2009-08-03 19:55:57 +02:00
7229ad68ab
Make sure we send with the same arguments again if SSL_write() fails with SSL_ERROR_WANT_READ.
Jan Vidar Krey2009-08-03 19:54:28 +02:00
22f9be95d0
ensure we close the SSL connection if we get SSL_ERROR_ZERO_RETURN.
Jan Vidar Krey2009-08-03 18:20:08 +02:00
4e43746c1b
Moved the ipaddr object into the connection object.
Jan Vidar Krey2009-08-03 18:14:34 +02:00
27c71a75ee
Hook in the new connection work, also implemented some missing bits and pieces of SSL. SSL seems to work at some basic level, and is largely untested.
Jan Vidar Krey2009-08-03 16:20:32 +02:00
1d363ed0b4
Expose the SSL_connect() and SSL_accept() functions.
Jan Vidar Krey2009-08-03 14:21:53 +02:00
0e1cd903da
Make sure we create enough sids as there are socket descriptors.
Jan Vidar Krey2009-08-02 22:29:12 +02:00
4931dc5dcb
Added call functionality to figure out the maximum number of sockets (file descriptors) available on system.
Jan Vidar Krey2009-08-02 22:26:07 +02:00
077bffd74f
Fix capped whoip/history messages due to limit of 1024 bytes imposed wrongly on outgoing server generated messages.
Jan Vidar Krey2009-08-02 21:58:12 +02:00
cfb8a9f322
Started using the new connection abstraction.
Jan Vidar Krey2009-08-02 21:46:57 +02:00
653cfb285e
Started working on abstracting the connection data away from the user struct.
Jan Vidar Krey2009-08-02 21:37:55 +02:00
5f0c84f46a
Fix shutdown problem and reduce event_{add,del,set} calls.
Jan Vidar Krey2009-07-19 03:12:47 +02:00
b02618d19c
Bad mistake - never added message to send queue.
Jan Vidar Krey2009-07-19 02:46:01 +02:00
927faf70fc
Re-enabled send queue fixes. This will more aggressively prevent unimportant messages (like searches) to be forwarded to slow clients that cannot swallow what is sent to it. This should reduce memory usage somewhat on really large hubs.
Jan Vidar Krey2009-07-19 02:31:23 +02:00
4a173bf066
Fix some nasty bugs related to read/write events and timeout events. This would have caused users not being able to log in, and in some cases 100% cpu usage.
Jan Vidar Krey2009-07-19 02:12:50 +02:00
abd097acf0
This is a somewhat risky patch, but it has been intended for quite some time: Remove the libevent handler for write events, only use one common event handler for both reading and writing.
Jan Vidar Krey2009-07-09 17:03:31 +02:00
3fdbccb028
Fix bug #47 - Enable -ggdb instead of -g for DEBUG builds. RELEASE builds are built with -O3 instead of -Os.
Jan Vidar Krey2009-07-09 17:01:45 +02:00
3db2ec5e22
Added macros that can possibly make it easier to optimize functions using forced inlining and regparm.
Jan Vidar Krey2009-07-09 17:01:30 +02:00
e68cbd0cde
Minor cleanups of old authentication stuff, and some documentation.
Jan Vidar Krey2009-07-03 01:29:04 +02:00
3cf005a08e
Fixed command parsing for in hub user commands. Added a framework for automatic syntax checks, and correct number of arguments to commands.
Jan Vidar Krey2009-06-26 01:15:06 +02:00
ddba669af0
Some basic work on getting bans working. Basically now it can ban a user (nick + cid), it will be added to the ban list temporarily, and will not be enabled if you restart the hub. A banned user will automatically be kicked.
Jan Vidar Krey2009-06-23 23:16:09 +02:00