Commit Graph

1056 Commits

Author SHA1 Message Date
Heikki Hannikainen 5a5c32470c version 1.5.0 2012-10-17 22:07:30 +03:00
Heikki Hannikainen 9591c6cb09 config: Disqualify configuration with no Listen directives.
Upgraded some config log messages from WARNING to ERROR.
2012-10-17 22:05:26 +03:00
Heikki Hannikainen 6e64ff008f filter: Implemented g/ text message destination filter
as appearing on javAPRSSrvr 4.0
2012-10-17 21:23:02 +03:00
Heikki Hannikainen d7f220e560 centos init script: check configuration before reload/restart 2012-10-17 21:22:27 +03:00
Heikki Hannikainen 17d67de0d5 debian init script: test configuration before reload/restart 2012-10-17 18:00:39 +03:00
Heikki Hannikainen ee9ccc0b59 uplink: Initiate uplinks 0.1 s after startup, instead of waiting for 1s 2012-10-17 17:59:40 +03:00
Heikki Hannikainen 9481f9e769 cfgfile parser: Log errors using hlog 2012-10-17 17:52:49 +03:00
Heikki Hannikainen 81cb9efe10 Added -y command line option to try out configuration parsing.
Reports errors (if any) and exits with error code 1 if config
seems bad. Otherwise, exit with code 0.
Useful for validating your configuration before restarting aprsc.
2012-10-17 00:28:36 +03:00
Heikki Hannikainen 2439caf34b Config/upstream: further fixes for reconfiguring uplinks 2012-10-17 00:03:31 +03:00
Heikki Hannikainen 46576d9c07 worker: When stopping workers at reconfig, report the number right.
It was reported as negative number (Stopping -2 workers).
2012-10-17 00:02:31 +03:00
Heikki Hannikainen 11c8394d4e parse_aprs: fix symbol parsing from dstcall for NMEA.
It didn't always get done, and uninitialized symbol might be
used for filtering.
2012-10-16 23:51:14 +03:00
Heikki Hannikainen 49220f94a5 accept: Don't trigger uplink reconfiguration unnecessarily (twice). 2012-10-16 23:50:16 +03:00
Heikki Hannikainen 20fbf3bbe1 reconfig: more work towards reconfiguring active listeners
Update listeners, ACLs, socket flags.
2012-10-16 00:35:33 +03:00
Heikki Hannikainen 3434843c97 version.h: fix tocall for 1.4 2012-10-15 23:04:17 +03:00
Heikki Hannikainen 921e09a656 Fixes to reconfiguration, and count users of UDP downstream.
Fixed reconfiguration issues with the help of valgrind.
New Listeners are added as needed, deleted listeners are closed.
Existing listeners are currently not touched (should fix them
to match current configuration and apply ACL/maxclients changes).
Users utilizing UDP downstream are now accounted as clients of
the UDP listeners.
2012-10-15 22:56:14 +03:00
Heikki Hannikainen 3120dd2720 dupecheck: fix FOR_VALGRIND build 2012-10-15 20:32:53 +03:00
Heikki Hannikainen 362a6be4d2 Igate processing (heard list maintenance) was accidentally enabled for full feeds.
Disable it - full feeds get all packets anyway, so we don't need to
route messages for them.
2012-10-14 21:39:50 +03:00
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