Commit Graph

215 Commits

Author SHA1 Message Date
Přemysl Eric Janouch be1e424e17 WS: include the part after '?' in the query 2015-06-25 21:54:16 +02:00
Přemysl Eric Janouch a16a7940dd Fix typo in HTTP request header 2015-06-24 20:46:42 +02:00
Přemysl Eric Janouch ace6a1ff56 Bump liberty
isspace_ascii() sabotaged the functioning of this program.
2015-05-25 23:14:40 +02:00
Přemysl Eric Janouch df5b7ad71a Update README 2015-05-07 20:28:24 +02:00
Přemysl Eric Janouch 8a41b31358 Update README 2015-05-07 20:27:57 +02:00
Přemysl Eric Janouch 6785d3a9ed Implement shutdown 2015-04-10 02:44:13 +02:00
Přemysl Eric Janouch 1944f9f17d Travis CI: Change IRC notification address 2015-04-10 01:46:05 +02:00
Přemysl Eric Janouch 4dbdc849d9 Steady progress
On the WebSocket service.

It's not too far from being finished now.  I just have to make some
sense of the code again and make sure it's correct.

Now that json-rpc-shell should be able to run against this, I can
also finally test if both of them work as they should.
2015-04-10 01:42:41 +02:00
Přemysl Eric Janouch 1c2c2bccbb Move a comment 2015-04-08 20:43:49 +02:00
Přemysl Eric Janouch ba659a99e1 Fix an embarrasing logic error 2015-04-08 20:33:42 +02:00
Přemysl Eric Janouch ad094ebb4b Allow specifying the CA bundle in configuration 2015-04-08 20:29:53 +02:00
Přemysl Eric Janouch e1d2626f10 WS: send messages in blocks 2015-04-08 20:00:47 +02:00
Přemysl Eric Janouch 808393c537 WS: only display the "connecting" status on -v 2015-04-08 19:51:57 +02:00
Přemysl Eric Janouch fd4177157e Fix WS masking logic 2015-04-08 19:49:45 +02:00
Přemysl Eric Janouch 01757df58f Display the IP address while connecting
Instead of resolving the domain name.
2015-04-08 19:49:09 +02:00
Přemysl Eric Janouch 4b56f09ea6 Non-functional little fixes 2015-04-08 19:48:22 +02:00
Přemysl Eric Janouch 3339f43ec9 Watch for SIGINT and SIGTERM 2015-04-08 02:35:32 +02:00
Přemysl Eric Janouch f0d60bb689 Handle quitting a bit better
And add some documentation.
2015-04-08 02:35:32 +02:00
Přemysl Eric Janouch ec54630fef Fix obsolete libev API usage 2015-04-08 02:09:40 +02:00
Přemysl Eric Janouch 7333f27159 Give the WebSocket backend some chance of working
This is all untested code.
2015-04-08 01:52:20 +02:00
Přemysl Eric Janouch 950fc21ecf Make asynchronous status messages possible
I. HATE. GNU. READLINE.
2015-04-07 02:58:59 +02:00
Přemysl Eric Janouch 371e52d782 Cleanup, fix handshake, better errors 2015-04-07 02:56:58 +02:00
Přemysl Eric Janouch 147aa01150 Travis CI: Change IRC notification address 2015-04-03 00:19:34 +02:00
Přemysl Eric Janouch 0f0c5d2617 WebSockets: use Server Name Indication with TLS 2015-04-03 00:15:44 +02:00
Přemysl Eric Janouch bdbfb915d2 Display a warning about WS status
So I can finally push this to GitHub.
2015-03-29 03:22:27 +02:00
Přemysl Eric Janouch 64381f8d46 Move a lot of stuff to liberty 2015-03-29 03:21:03 +02:00
Přemysl Eric Janouch db6dff4216 Move a lot of stuff to liberty 2015-03-29 03:14:20 +02:00
Přemysl Eric Janouch b0c712c146 Stubplement WebSockets 2015-03-29 00:37:12 +01:00
Přemysl Eric Janouch b400ea8d09 Not so trivial anymore
We're gonna implement WebSockets soon, so make appropriate changes to texts.

Updated copyright in LICENSE.
2015-03-23 23:25:43 +01:00
Přemysl Eric Janouch 8aa232d32e Add and fix some preliminary tests 2015-03-23 20:12:53 +01:00
Přemysl Eric Janouch 6e9109df4c Don't allow whitespace in base64 2015-03-23 20:12:02 +01:00
Přemysl Eric Janouch 987eae5661 Steady progress
Renamed some constants, added basic UTF-8 validation.
2015-03-23 16:47:21 +01:00
Přemysl Eric Janouch 9b7dd630e3 WebSockets improvements
- validate more HTTP stuff, use the newer RFC
 - validate the base64 key
2015-03-22 22:35:58 +01:00
Přemysl Eric Janouch c87d684154 Steady progress
Started parsing Content-Type properly after studying the HTTP RFC
for a significant period of time.

Some further WebSockets stuff.
2015-03-15 04:32:04 +01:00
Přemysl Eric Janouch 23eb4cca38 Steady progress
Still in a state of total chaos, it appears.
2015-03-14 19:37:00 +01:00
Přemysl Eric Janouch 4337038819 Try to lock a PID file 2015-03-11 23:57:25 +01:00
Přemysl Eric Janouch 012a57b357 Steady progress
Some further refactoring, added a few comments, etc.

It's not about adding huge chunks of code anymore, and I'm slowly
moving towards getting the details right.

There's still a ton of TODO items, though.
2015-03-11 00:25:46 +01:00
Přemysl Eric Janouch 3c0e48a429 Refactoring 2015-03-10 20:48:25 +01:00
Přemysl Eric Janouch 5885d1aa69 Some intial WebSockets code 2015-03-09 23:32:01 +01:00
Přemysl Eric Janouch 931fc441f6 Steady progress
Added static content serving with sane content type detection.

Started working on WebSockets (meanwhile neither SCGI or FastCGI is
finished and almost nothing has been tested).
2015-03-08 09:41:10 +01:00
Přemysl Eric Janouch 9e0c9dd6d8 Steady progress
Still trying to figure out FastCGI.

At least I've finally implemented the JSON-RPC handler.
2015-03-08 05:51:51 +01:00
Přemysl Eric Janouch 2733ead30f Figuring out how to close the connection 2015-03-06 19:49:33 +01:00
Přemysl Eric Janouch 0b0d64124b Steady progress 2015-03-05 08:47:20 +01:00
Přemysl Eric Janouch a54230bddb Steady progress
I'm trying to figure out everything at once, i.e. the entire structure
of the application from top to bottom, trying to converge on a workable
design while refactoring still doesn't hurt as much as it would once
it's established.
2015-03-02 23:11:29 +01:00
Přemysl Eric Janouch 8a3241d5c4 Initial commit
Not even the demo is able to compile yet.

I'm just tracking my progress.
2015-03-02 19:14:37 +01:00
Přemysl Eric Janouch ecad324ef3 Move to liberty 2015-02-28 21:18:54 +01:00
Přemysl Eric Janouch 49600a082b Fix the silliest of issues in utils.c 2015-02-28 01:04:33 +01:00
Přemysl Eric Janouch 0fb4a3cb34 Miscellaneous little changes 2015-02-26 22:56:52 +01:00
Přemysl Eric Janouch f6f66c9021 Fix a leak and a null pointer dereference 2015-02-22 21:30:30 +01:00
Přemysl Eric Janouch f468fdf343 Travis CI: Add help2man 2015-02-22 20:32:18 +01:00