Commit Graph

1084 Commits

Author SHA1 Message Date
Heikki Hannikainen 1e4e46c5ce http: Do not compress images, they're already compressed. 2013-02-23 11:20:08 +02:00
Heikki Hannikainen c30c0ba348 http: adjust comments 2013-02-23 10:46:11 +02:00
Heikki Hannikainen 68aecc0608 http: Compress status and graphdata JSON responses too.
Clean out a little duplicate code.
2013-02-23 10:42:46 +02:00
Heikki Hannikainen dcc036d30d http: Implement gzip transfer-encoding for static files 2013-02-23 10:25:29 +02:00
Heikki Hannikainen bda0ce7a62 http: Check for client transfer-encoding support for static file requests 2013-02-22 13:42:07 +02:00
Heikki Hannikainen 4ecbae36b1 autoconf: Check for zlib (lib and header) 2013-02-22 12:20:59 +02:00
Heikki Hannikainen 54d4dccda2 Fix new time handling to get uptime right, and convert client
connect times to new ticks on live upgrade.
2013-02-21 00:29:29 +02:00
Heikki Hannikainen cda606f2f5 Log time thread method (gettimeofday or clock_gettime), and
tune Accept thread startup message a bit
2013-02-19 22:04:23 +02:00
Heikki Hannikainen 359dbdc16b Fix compiling without clock_gettime 2013-02-19 21:47:35 +02:00
Heikki Hannikainen f05cc6c632 timekeeping: Use clock_gettime CLOCK_MONOTONIC when available
and separate wall clock and monotonic time from each other.
"tick" is monotonic, "now" is real time.
2013-02-19 18:09:15 +02:00
Heikki Hannikainen f632f72c50 worker: fix collect_new_clients ignoring clients with no FD 2013-02-19 18:09:15 +02:00
Heikki Hannikainen 5173a3fc06 Fix issue 20: Escape unprintable characters when logging packets 2013-02-19 18:02:49 +02:00
Heikki Hannikainen 8906f9b681 accept: After reconfiguring close clients which are connected to
listeners removed in the reconfiguration, and clients which no
longer match the ACLs on each listnere
2013-02-18 20:50:34 +02:00
Heikki Hannikainen d4aaefd5f3 worker: Slight refactor in collect_new_clients 2013-02-18 20:50:06 +02:00
Heikki Hannikainen 824409c170 Fixed 3rd party TCPIP/TCPXX path packet drop to articulate
drop reasoning better (gated TCPIP>RF>TCPIP)
2013-02-07 11:16:16 +02:00
Heikki Hannikainen 1a650bb9d1 version 1.8.2 2013-02-06 19:14:50 +02:00
Heikki Hannikainen f99bcd70f3 Fix third-party header parser to allow more than 2 path elements. 2013-02-06 19:07:07 +02:00
Heikki Hannikainen 46d9a3aee0 version 1.8.1 2013-02-06 17:52:13 +02:00
Heikki Hannikainen bfeee94805 parse_aprs_3rdparty: add comments to describe what it does 2013-02-06 17:51:31 +02:00
Heikki Hannikainen e840c71499 parse_aprs_3rdparty: use memchr for the initial search,
it's likely to be well-optimized.
2013-02-06 17:45:04 +02:00
Heikki Hannikainen d6087a259e Really drop invalid 3rd-party packets (and test it right) 2013-02-05 22:46:16 +02:00
Heikki Hannikainen 0a41e69a9f Make p and b filters work on 3rd-party packets. Validate
3rd party packet header validation in tests, too.
2013-02-05 22:29:02 +02:00
Heikki Hannikainen b57c07f20c coverity: Fix two unlikely unterminated buffer bugs 2013-02-05 13:49:54 +02:00
Heikki Hannikainen aa8736a0c3 config: Validate serverid length to be small enough 2013-02-05 13:47:29 +02:00
Heikki Hannikainen e1418c9d54 path parsing: less debug log 2013-02-05 13:38:19 +02:00
Heikki Hannikainen ef56b7431f Parse most data out of 3rd-party packets, add tests.
Validate calls in path after Q construct.
2013-02-05 13:28:22 +02:00
Heikki Hannikainen 7475552ca2 startup: Don't do DNS call-home when running the test suite. 2013-02-04 23:55:40 +02:00
Heikki Hannikainen 1b4dd01c06 coverity: uplink: Silence warnings about missing mutex 2013-02-04 09:06:02 +02:00
Heikki Hannikainen bc1fa91e30 coverity: Quiet a false alarm, removed unused client_udp_t->configured var 2013-02-04 08:55:38 +02:00
Heikki Hannikainen 8620c02d39 version 1.8.0 2013-02-03 20:41:57 +02:00
Heikki Hannikainen 89392179f4 Reduce logging: Only complain about poll sleep failures if errno != EINTR 2013-02-03 20:38:57 +02:00
Heikki Hannikainen e9f9d5c598 coverity: historydb liveupgrade load: get wrlock to silence coverity
and just to be sure, although the function is only called at startup
before threads are running
2013-02-03 20:17:19 +02:00
Heikki Hannikainen 6186807715 coverity: uplink: check for poll sleep return code 2013-02-03 20:11:35 +02:00
Heikki Hannikainen 8435e98b0b coverity: filter: Fix out-of-bounds read 2013-02-03 20:09:24 +02:00
Heikki Hannikainen 1d91e1d8c2 coverity: uplink: Check getsockopt return code.
Removed some duplicate code by jumping to a common error handler.
2013-02-03 19:34:29 +02:00
Heikki Hannikainen a114cd83b8 coverity: Check for return codes in a couple of rather insignificant spots 2013-02-03 19:23:15 +02:00
Heikki Hannikainen 67b56a0d78 coverity: Minor fixes, check for string emptiness the right way 2013-02-03 19:17:58 +02:00
Heikki Hannikainen 91763ba99c coverity: accept: Add return value checks for listener setsockopt calls 2013-02-03 19:17:39 +02:00
Heikki Hannikainen 4622369bb7 coverity: Fix a small logging bug (only log app name/ver if it's present)
Removed a lot of #ifdefs by using static username/version/addr vars always.
2013-02-03 19:06:43 +02:00
Heikki Hannikainen 6cbf13b4e6 coverity: filter: Fix resource leak 2013-02-03 18:53:08 +02:00
Heikki Hannikainen 0fbd16ab3e filter: Fix additional buffer overflows 2013-02-03 18:44:12 +02:00
Heikki Hannikainen eee9753ce6 coverity: http: use fstat() instead of stat() to make sure IMS hits
works right in the rather unlikely scenario of a static file getting
replaced during request handling.
2013-02-03 18:31:04 +02:00
Heikki Hannikainen 583c473882 accept: Check for setsockopt() return codes 2013-02-02 19:58:32 +02:00
Heikki Hannikainen 981e254873 coverity: accept: Check pass_client_to_worker return value
in case of mutex lock failure, could fail, should log
2013-02-02 19:44:53 +02:00
Heikki Hannikainen 6983f17463 coverity: xpoll epoll: Check fcntl return value, log error as necessary 2013-02-02 19:40:04 +02:00
Heikki Hannikainen 4acccebfc4 coverity: fix a minor bug in symbol parsing from destination callsign 2013-02-02 19:36:07 +02:00
Heikki Hannikainen 17a6b723ad coverity: uplink: if uplink server name resolves but returns 0
records, don't divide by zero.
2013-02-02 19:12:57 +02:00
Heikki Hannikainen 361132c518 coverity: If port is full, handle client disconnection right. 2013-02-02 19:10:10 +02:00
Heikki Hannikainen f167f9c06f coverity: worker: client classification: If it fails, don't reference null pointers. 2013-02-02 19:07:28 +02:00
Heikki Hannikainen ad3d1e9e39 fix missing comment termination 2013-02-02 19:06:25 +02:00