Joris Vink
88c3a3eb98
Add http_header_max and http_postbody_max configuration variables.
...
- http_header_max:
Maximum size of HTTP headers (in non SPDY connections).
- http_postbody_max:
Maximum size of an HTTP POST body (both in SPDY and HTTP mode).
Right now Kore will simply DC the client, ideally we want to send
a 413 (entity too large) to the client however.
See modules/examples/module.conf for more.
2013-09-22 20:05:24 +02:00
Joris Vink
8566c32da8
Properly send WINDOW_UPDATE messages to the client when our window is full.
...
Fixes uploads > 64kb when using SPDY
2013-09-09 11:24:15 +02:00
Joris Vink
c9d4f70298
- Add SPDY RST control frame handler.
...
- Keep HTTP requests in connection, so we can delete them if the connection
ends before the requests do (this way we don't leak them).
- When spdy_stream_close() is called, delete the attached http request.
(This shouldn't hurt to do, so hopefully won't cause major fallout).
- When parsing HTTP, find the first occurence of end-of-headers so uploads
with multipart/form-data can succeed properly.
- Add a test upload page to the example module.
2013-09-09 10:59:56 +02:00
Joris Vink
f59e94a7b6
Add spdy_session_teardown() which can properly teardown a SPDY session.
...
Use this throughout the spdy code to propagate session errors (if any) occur.
At the same time fix BSD's missing CONN_WRITE_BLOCK
2013-07-13 19:56:38 +02:00
Joris Vink
fa78d24948
remove WILLCLOSE, no longer needed
2013-07-09 15:23:33 +02:00
Joris Vink
c1723f2db5
Clean up header includes, based on a diff from Ewan Higgs via github.
...
And while we're messing in it, make sure bsd.c compiles again.
2013-07-06 20:55:22 +02:00
Joris Vink
51a9e4db9d
Implement SPDY WINDOW_UPDATE and SETTINGS.
2013-07-01 11:30:18 +02:00
Joris Vink
a025f0fa8e
save the http request for spdy later on
2013-05-02 15:06:26 +02:00
Joris Vink
4fb8a13f1b
mmmm
2013-05-02 15:00:03 +02:00
Joris Vink
84428f7133
move buf stuff into its own header, so we can use it in spdy.h
2013-05-02 14:55:57 +02:00
Joris Vink
f1fa108f98
begin processing window_update messages
2013-05-02 10:10:03 +02:00
Joris Vink
d59847c448
SPDY works, we can serve content. Now for dynamic modules so we can
...
get stuff on the road.
TODO: add plain HTTP support if SPDY isnt working in the browser.
2013-05-01 12:23:21 +02:00
Joris Vink
848704f74b
lots of new stuff, including processing of http requests and an attempt
...
to build an initial spdy response (SYN frame + header block content).
2013-05-01 08:09:04 +02:00
Joris Vink
05156c9a3a
properly deflate/inflate of name/value blocks. and add ability
...
to get headers from them.
2013-05-01 00:35:33 +02:00
Joris Vink
bb3b804222
add beginnings of zlib inflation, not really working. nap time.
2013-04-29 23:35:36 +02:00
Joris Vink
c8b422d29d
allow us to expand receive buffers automatically so we can keep chaining data into the same netbuf. This gives us the possibility to retain the ctrl_frame by the time we reach the proper cb for the actual frame message.
2013-04-28 23:42:13 +02:00
Joris Vink
23c0ec67c6
begin with the ability to read control frames. something feels fishy with epoll() and its triggering of events. I probably got it wrong.
2013-04-28 19:11:44 +02:00