Commit Graph

1039 Commits

Author SHA1 Message Date
Heikki Hannikainen 2fe86a6c5f version 1.4.0 2012-10-14 16:04:42 +03:00
Heikki Hannikainen 2b81a48b45 Do not drop clients on the initial EAGAIN|EWOULDBLOCK write error,
buffer packets instead. The error happens even when the per-socket
kernel buffer limit is not met (only hundreds of bytes written).
2012-10-14 11:15:13 +03:00
Heikki Hannikainen 267addfc5e Client close msg: Print (?) instead of () for users with unknown username 2012-10-14 03:21:30 +03:00
Heikki Hannikainen 3125d45329 Further connection close message improvements 2012-10-14 03:10:29 +03:00
Heikki Hannikainen d716d78529 login: additional comment added 2012-10-14 02:36:08 +03:00
Heikki Hannikainen c202e81508 Report more thruthful error message for client/uplink quits 2012-10-14 02:31:48 +03:00
Heikki Hannikainen 2368cd15c7 dupecheck: less debug log, + new errno.c for error messages 2012-10-14 02:04:11 +03:00
Heikki Hannikainen 33e9815541 Merge branch 'master' into epoll 2012-10-13 14:56:18 +03:00
Heikki Hannikainen c4a233c1c5 Put disallow_unverified setting back (for CWOP server use) 2012-10-13 13:36:46 +03:00
Heikki Hannikainen c7b63a9f1f worker: fixed compiler warning (unnecessary, but warning nonetheless) 2012-10-12 22:49:17 +03:00
Heikki Hannikainen 477e1f0039 Merge branch 'master' into epoll 2012-10-12 22:22:08 +03:00
Heikki Hannikainen 2075079ba2 Implemented SO_KEEPALIVE for client sockets. 2012-10-12 22:15:34 +03:00
Heikki Hannikainen d839000ad7 outgoing: +comment 2012-10-12 07:08:55 +03:00
Heikki Hannikainen f5a4298292 outgoing/worker: Classify upstreams/peers in their own list 2012-10-12 02:49:52 +03:00
Heikki Hannikainen 9cb21af856 outgoing/worker: classify read-only clients to their own list 2012-10-12 02:33:46 +03:00
Heikki Hannikainen 18b7dc4320 worker/outgoing: Classify dupeclients in a separate list
so that we don't need to walk through all clients when looking
for dupeclients. Optimisation starting point: will classify
other types of clients in their own lists.
2012-10-12 02:22:07 +03:00
Heikki Hannikainen ed66310c8c outgoing: make the outgoing clients scan loop tighter 2012-10-12 01:39:46 +03:00
Heikki Hannikainen c17fd235a0 outgoing: reorder checks to do the more common ones first 2012-10-12 00:12:08 +03:00
Heikki Hannikainen bb86d0f733 floodconnect: fix typo in printf 2012-10-11 23:52:44 +03:00
Heikki Hannikainen 56a171b2d6 eventload: shorter usernames (max 9 chars) 2012-10-11 23:52:27 +03:00
Heikki Hannikainen 36e3c02b0b clientlist: implement hash table (512 buckets) for speedy lookups 2012-10-11 23:51:20 +03:00
Heikki Hannikainen 745c092044 allow testing with 40000 clients 2012-10-11 22:43:32 +03:00
Heikki Hannikainen 1022c3326c accept: fix a log message to say the right thing 2012-10-11 22:43:00 +03:00
Heikki Hannikainen 22e4863692 worker: just a comment added 2012-10-11 22:00:55 +03:00
Heikki Hannikainen 137fb10eee eventload: use a variable username 2012-10-11 19:50:09 +03:00
Heikki Hannikainen 96cc29ed79 If a worker has more than 1000 clients, do not list them in the client list
JSON. cJSON's array addition simply takes way too much CPU.
2012-10-11 19:49:35 +03:00
Heikki Hannikainen c65392e5fb cellmalloc: use max 100 zones to allow huge amounts of clients 2012-10-11 18:43:24 +03:00
Heikki Hannikainen 95493b5fd0 login: randomize initial keepalive time 2012-10-11 18:38:18 +03:00
Heikki Hannikainen 39f8f43b64 xpoll/startup: log on INFO level at startup, which mechanism is used 2012-10-11 01:57:36 +03:00
Heikki Hannikainen 6fdc122a51 eventload: fix it 2012-10-11 01:36:13 +03:00
Heikki Hannikainen 729a7d22e8 epoll: make it work, and log xpoll initialization, mentioning epoll or xpoll usage 2012-10-11 01:35:27 +03:00
Heikki Hannikainen 0f6cffc0c2 epoll: rebuild configure 2012-10-11 01:34:55 +03:00
Heikki Hannikainen da66817168 Merge branch 'master' into epoll 2012-10-11 00:09:26 +03:00
Heikki Hannikainen de58a1bceb version 1.3.1 2012-10-10 21:50:24 +03:00
Heikki Hannikainen 0490a0802a Log POSIX capability availability at a later phase
so that it's not printed on the console at startup, but goes
to the log file instead.
2012-10-10 21:49:22 +03:00
Heikki Hannikainen f11ce0aaec accept.c: silence compiler warnings 2012-10-10 21:49:02 +03:00
Heikki Hannikainen a22f87ad83 version 1.3.0 2012-10-10 18:53:15 +03:00
Heikki Hannikainen 43d84a9e30 Merge branch 'master' into epoll 2012-10-10 10:23:29 +03:00
Heikki Hannikainen 407f32da7f Merge branch 'master' into epoll 2012-10-10 10:22:20 +03:00
Heikki Hannikainen f45361e87f eventload: use TESTING as igate in path 2012-10-10 10:21:10 +03:00
Heikki Hannikainen 630ca32857 eventload: make username/passcode configurable 2012-10-10 10:20:40 +03:00
Heikki Hannikainen 62a94b2e85 slightly working eventload.c 2012-10-10 10:17:18 +03:00
Heikki Hannikainen 905cdfff26 Implemented a global MaxClients setting (default 500).
Limits the total amount of logged-in clients, not counting
peers or uplinks, and UDP clients are only included once for the
TCP/SCTP control connection.
Added check for MaxClients being < FileLimit - 50, so that file
descriptors are reserved for Uplinks and file IO.
2012-10-10 10:10:56 +03:00
Heikki Hannikainen a63871e8da udpsubmit client listener: always set maxclients to 1, as that's what it is 2012-10-10 08:41:52 +03:00
Heikki Hannikainen e373494030 status/munin: rename 3rd_party to party_3rd to fix munin graphs
with new munin, it didn't appreciate RPN math with a label
starting with a number
2012-10-09 20:57:10 +03:00
Heikki Hannikainen 9d33564179 Merge branch 'master' into epoll 2012-10-09 20:51:15 +03:00
Heikki Hannikainen 731fc9214d Added unfinished eventload.c 2012-10-09 20:51:02 +03:00
Heikki Hannikainen 400fc0dd72 BUILDING doc: mention libcap-dev dependency 2012-10-09 20:22:48 +03:00
Heikki Hannikainen 13f01013a5 Only set POSIX capability for binding low ports if such are configured 2012-10-09 20:01:34 +03:00
Heikki Hannikainen b4559d0d5c autoconf for POSIX capabilities 2012-10-09 19:51:48 +03:00