Commit Graph

58 Commits

Author SHA1 Message Date
Heikki Hannikainen ef5b8b2d9f UDP submit, packet rejections: log them as UDP submit instead of HTTP POST rejections 2015-09-06 12:39:18 +03:00
Heikki Hannikainen bbf3ff0927 Always use aprsc-logo.png for the logo name, no logo version in filename.
* Allow loading with aprsc-logo2.png and aprsc-logo3.png for a few versions.
2014-01-05 14:31:27 +02:00
Heikki Hannikainen f687bece8f Apply new logo 2013-12-22 01:58:45 +02:00
Heikki Hannikainen 280affbc4a Moved version number to a single file (VERSION) to ease up
version bumping.
2013-06-26 07:53:29 +03:00
Heikki Hannikainen 5860f848b0 http: Fix gzip with small files again. Compressing very small files
can make them larger. Increase minimum file size for compression
from 100 to 150 bytes, log compression failures again (output
buffer was too small for the enlarged file), use an output buffer
larger than the input buffer to make space for gzip header. If
the file gets larger, send uncompressed version.
2013-06-26 07:45:40 +03:00
Heikki Hannikainen 128b72d39f Makefile, httpd: install + allow downloading the flot selection plugin 2013-06-24 22:58:57 +03:00
Heikki Hannikainen 5642c7aa9e http gzip: Allow Z_OK return value from deflate 2013-04-26 19:14:12 +03:00
Heikki Hannikainen 0a475077d5 http: Less debug log from compression 2013-02-23 11:59:33 +02:00
Heikki Hannikainen 61594d8ab0 http: Fix memory leak, free compressed reply data after buffering it out 2013-02-23 11:31:03 +02:00
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 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 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 0724e2c5f6 web: Support for MOTD on the status page 2012-11-10 12:36:10 +02:00
Heikki Hannikainen 376b7dc32a Reconfigure: reconfig the http service
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@834 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-09-07 06:30:22 +00:00
Heikki Hannikainen 854fcb9bf8 Shut down the http thread in accept thread after dupecheck has been stopped.
Free the http thread's pseudoworker structure at http shutdown (accept thread
won't be confused now).


git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@749 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-29 04:04:49 +00:00
Heikki Hannikainen d8a6424f5f Free pseudoworker from accept.c
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@747 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-28 22:22:53 +00:00
Heikki Hannikainen d92371c6a9 http: free things when shutting down
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@745 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-28 22:07:30 +00:00
Heikki Hannikainen 2a48f2dcf3 Free the libevent base at shutdown
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@743 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-28 21:53:00 +00:00
Heikki Hannikainen 7bf0500a50 implemented UDP submit support
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@727 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-28 07:05:32 +00:00
Heikki Hannikainen a449b192f8 split out http packet parsing, step 1
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@725 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-28 04:18:35 +00:00
Heikki Hannikainen 97cb9442bf Fixed http.c building with libevent2
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@710 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-25 01:50:52 +00:00
Matti Aarnio 6511277675 libevent support for CentOS, test 2b
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@707 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-24 22:58:35 +00:00
Matti Aarnio ab10bd6219 libevent support for CentOS, test 2
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@706 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-24 22:56:12 +00:00
Heikki Hannikainen 4cf5d841c7 Generate version information on every build
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@686 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-24 07:58:24 +00:00
Heikki Hannikainen e44662895f version 0.4.0.
Support for multiple HTTP listeners on specified addresses/ports
(used to support only one Upload and one Status port). Needed
for FreeBSD IPv4+IPv6 support on HTTP.


git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@632 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-14 17:28:57 +00:00
Heikki Hannikainen 53d4bac0b2 http: make the server case sensitive and not return static files
based on matching prefix only


git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@623 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-14 07:42:25 +00:00
Heikki Hannikainen edbdbe9fb6 http: make some content cacheable and set appropriate max-age headers
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@600 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-05 09:20:25 +00:00
Heikki Hannikainen b0c656c506 Implemented graphs on the status page.
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@582 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-03 20:10:37 +00:00
Heikki Hannikainen 090e09daec Provide easier method to set up counterdata in status.c.
Give out specific graph data sets over HTTP.


git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@580 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-03 16:32:29 +00:00
Heikki Hannikainen d1e91b6d53 Report UDP and TCP data rates in the status JSON
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@578 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-03 05:13:47 +00:00
Heikki Hannikainen fae0036e25 version 0.2.5
- change from MyCall to ServerId in configuration, just to be consistent
with all existing documentation. The ServerId is normally not a
callsign.
- If application provides a software name but no version at login, do
take note of the software name.


git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@556 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-08-01 13:58:19 +00:00
Heikki Hannikainen ef9fc6c246 http service: send out Server: header to make it possible to autodetect javaprssrvr vs. aprsc
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@551 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-31 16:51:51 +00:00
Heikki Hannikainen 26881bb247 Messaging fix: route messages destined to the logged-in username/callsign,
even before a position packet has been transmitted by that call.


git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@543 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-30 17:43:06 +00:00
Heikki Hannikainen 079eae8aa0 Fixed SEGV when dupecheck runs without the http thread being alive.
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@523 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-29 19:28:50 +00:00
Heikki Hannikainen 59c3a80f09 make http position uploads work - really!
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@520 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-29 17:56:46 +00:00
Heikki Hannikainen ec45f00112 http: incoming packet size limits checked
Prepare for allocating a worker structure for the http thread.


git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@513 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-29 08:36:45 +00:00
Heikki Hannikainen 83f7cba9a4 http post: parse login string and validate passcode
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@512 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-28 14:15:38 +00:00
Heikki Hannikainen c412d45abf http: split the incoming POST to lines
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@511 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-28 13:59:25 +00:00
Heikki Hannikainen 5b5eacf8c6 http post upload handling: get the request in and parse the HTTP side of things
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@510 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-28 13:37:56 +00:00
Heikki Hannikainen 95c87009e7 http server: run separate servers within libevent for status and upload
ports, so that different URL mappings can be had for each.


git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@507 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-07-28 10:27:39 +00:00
Heikki Hannikainen af75c35d06 status json: Don't use a cached version when writing it to a file.
status json: Display worker thread status a bit.

worker: When shutting down, check for incoming queue consistency
and log errors.

pbuf expiration: expire quickly, in about 10 seconds, to survive
heavy load testing. We don't need them since we don't support history
dumps, right?

Enabled a bunch of debug logs for now.


git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@480 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-28 07:17:58 +00:00
Heikki Hannikainen 9332c0ad1f + new aprsc-logo
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@448 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-13 19:23:33 +00:00
Heikki Hannikainen 619cf48e42 http server: fix to not send 404 response in the end of all static page responses
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@420 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-07 18:05:39 +00:00
Heikki Hannikainen 04b54a9e42 + client byte rates
+ nicer logos


git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@414 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-07 09:11:28 +00:00
Heikki Hannikainen 9cccedd6ed HTTP: Implement giving out static files to support AJAX based status view.
Login+Filter: Store the user's filter in a client struct variable, for the status view.
Accounting: Fix in/out packet counting to not include keepalive strings etc.
Status: Added pbuf cellmalloc stats. Added more client stats (accounting).
Cellmalloc: Report the amount of cells allocated.


git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@410 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-06 21:35:46 +00:00
Heikki Hannikainen c94063663f HTTP: more safety limits
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@408 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
2012-06-05 22:15:58 +00:00