Tatsuhiro Tsujikawa
03307116a2
Send GOAWAY when spdylay_frame_unpack_* is failed with non-fatal error.
...
SPDYLAY_ERR_ZLIB is now moved back to non-fatal error and it is subject
to GOAWAY if it occurred.
2012-02-18 21:55:40 +09:00
Tatsuhiro Tsujikawa
b182179aca
Check frame length strictly for GOAWAY, RST_STREAM and PING.
2012-02-18 21:51:57 +09:00
Tatsuhiro Tsujikawa
122c619260
Fixed spdylay_frame_count_nv_space() bug. Check all data is processed in spdylay_frame_count_unpack_nv_space()
2012-02-18 17:25:13 +09:00
Tatsuhiro Tsujikawa
b1da54a549
Made SPDYLAY_ERR_ZLIB FATAL error. Removed SPDYLAY_ERR_ZLIB_BUF.
...
If SPDYLAY_ERR_ZLIB is encountered, zlib context is out of sync.
So we cannot further SYN_STREAM/SYN_REPLY/HEADERS frames.
I'm not sure we should send GOAWAY in this case.
So bail out with fatal error and drop connection for now.
2012-02-18 02:19:09 +09:00
Tatsuhiro Tsujikawa
005883e363
Added TODO comment
2012-02-17 00:34:36 +09:00
Tatsuhiro Tsujikawa
4dd43fc28f
Updated doc
2012-02-16 23:48:12 +09:00
Tatsuhiro Tsujikawa
6f30bbbcb5
Fixed test name
2012-02-16 23:47:04 +09:00
Tatsuhiro Tsujikawa
6cb4259232
Merge branch 'master' of https://github.com/sorced-jim/spdylay into sorced-jim-master
2012-02-16 23:41:53 +09:00
Tatsuhiro Tsujikawa
b81b5a3116
Added eof member to spdylay_data to indicate all data are read.
...
Ensure that if flags contains SPDYLAY_FLAG_FIN, only the last DATA frame
has FLAG_FIN set.
2012-02-16 23:38:19 +09:00
Tatsuhiro Tsujikawa
d4ba423248
Reuse session->iframe.buf for all incoming frames.
2012-02-16 23:09:06 +09:00
Tatsuhiro Tsujikawa
7a6bf8e5cc
Allocate bytes divisible by 4KiB when expanding buffer
2012-02-16 22:54:08 +09:00
Tatsuhiro Tsujikawa
61cfa3b9f8
Simplified error handling in spdylay_session_new
2012-02-16 22:47:49 +09:00
Tatsuhiro Tsujikawa
ac1629e61b
Reuse buffers when unpacking frames.
2012-02-16 22:01:34 +09:00
Tatsuhiro Tsujikawa
050f33e8f9
Reuse buffers when packing frames.
...
Temporal name/value buffer will be shared by unpacking frame.
2012-02-16 20:54:30 +09:00
Jim Morrison
63353ea486
Ensure read_callback is non-NULL for request bodies.
2012-02-15 14:30:36 -08:00
Jim Morrison
f05a67641f
Be a bit more liberal about what methods accept message bodies.
2012-02-15 13:49:02 -08:00
Jim Morrison
d04449eb28
Document that url should have the query parameters.
2012-02-15 13:33:30 -08:00
Jim Morrison
40e8fc960e
Create a test that explicitly checks that a key exists only once in a name/value block.
2012-02-15 12:07:25 -08:00
Jim Morrison
99f344f9a3
Merge remote-tracking branch 'original_master/master'
2012-02-15 11:23:19 -08:00
Tatsuhiro Tsujikawa
e4ad446261
Fixed busy loop: remove marked handler.
2012-02-16 02:51:46 +09:00
Tatsuhiro Tsujikawa
85ec883d11
Lower-case names in name/value pairs in spdylay_submit_{request, response}
2012-02-15 23:54:42 +09:00
Tatsuhiro Tsujikawa
e7e2c69526
Renamed spdylay_submit_cancel() as spdylay_submit_rst_stream().
2012-02-15 23:27:19 +09:00
Tatsuhiro Tsujikawa
c1aefb3ba5
Added flags argument to spdylay_submit_data() and spdylay_frame_data_init().
...
The intention is make spdylay_submit_data() more generic, allowing trailing
DATA and/or HEADERS frames.
2012-02-15 23:02:51 +09:00
Tatsuhiro Tsujikawa
938f51964d
Respond RST_STREAM with PROTOCOL_ERROR when upper cased name is present in nv.
2012-02-15 22:11:42 +09:00
Jim Morrison
f4005a4e00
Merge remote-tracking branch 'original_master/master'
...
Conflicts:
configure.ac
examples/.gitignore
2012-02-14 09:18:29 -08:00
Tatsuhiro Tsujikawa
f71572b835
Don't send DATA frame if RST_STREAM was queued for this stream.
2012-02-15 01:07:51 +09:00
Tatsuhiro Tsujikawa
fd06d21638
Call on_stream_close_callback when server pushed SYN_STREAM has FIN flag set.
...
Don't mix status code and return value in
spdylay_session_on_syn_stream_received.
2012-02-15 00:45:09 +09:00
Tatsuhiro Tsujikawa
8069575838
Enclose host in [] if host is IPv6 literal address.
2012-02-15 00:14:27 +09:00
Tatsuhiro Tsujikawa
bfc3b4b95b
Updated README.rst
2012-02-15 00:04:16 +09:00
Tatsuhiro Tsujikawa
4dc3214222
Added example of node.native style spdy server
2012-02-14 23:54:23 +09:00
Tatsuhiro Tsujikawa
a761d97bed
Fixed compiler warning
2012-02-14 23:06:08 +09:00
Tatsuhiro Tsujikawa
b507db7c9b
Extracted core server code to SpdyServer.{h,cc} for reuse.
...
Reorganized source entries in examples/Makefile.am
2012-02-14 21:49:22 +09:00
Tatsuhiro Tsujikawa
23886a788a
Add -lncrses to CUNIT_LIBS for Mac OS X build.
...
We chooses the way to just add -lncurses to CUNIT_LIBS only for Mac OS X.
This is because currently only Mac's cunit requires ncurses and adding
a flag is simpler than erabolate checking.
2012-02-14 21:26:52 +09:00
Jim Morrison
c5f5ee5832
Ignore spdyd
2012-02-14 21:24:58 +09:00
Tatsuhiro Tsujikawa
97b853254a
Fixed the bug that length parameter in on_data_send_callback includes header length.
2012-02-14 01:42:00 +09:00
Tatsuhiro Tsujikawa
7abf48f061
Fixed typo
2012-02-13 01:41:35 +09:00
Tatsuhiro Tsujikawa
81307745c4
Made spdylay_outbound_item_compar() static
2012-02-13 00:48:03 +09:00
Tatsuhiro Tsujikawa
a48ad800b2
When a stream is canceled by RST_STREAM, don't send further DATA on that stream.
2012-02-12 19:01:23 +09:00
Tatsuhiro Tsujikawa
028e1f2b8f
Added test case where DATA frame is backed off by higher priority frame.
2012-02-12 18:30:19 +09:00
Tatsuhiro Tsujikawa
9e3191a548
Updated doc
2012-02-12 17:43:50 +09:00
Tatsuhiro Tsujikawa
a4961a95bd
Moved spdylay_submit_* functions to spdylay_submit.c
2012-02-12 17:41:55 +09:00
Tatsuhiro Tsujikawa
6f0fb62043
Made session_id_seed global
2012-02-12 00:11:52 +09:00
Jim Morrison
69dc06f2fb
Ignore spdyd
2012-02-09 11:32:07 -08:00
Jim Morrison
553410c350
Make the ncurses check a runtime check
2012-02-09 10:54:47 -08:00
Tatsuhiro Tsujikawa
fee4a205a6
Updated README.rst
2012-02-10 02:29:41 +09:00
Tatsuhiro Tsujikawa
f11c2a94b4
Listen both IPv4 and IPv6 sockets.
2012-02-10 02:27:56 +09:00
Tatsuhiro Tsujikawa
6d35f7e470
Added kqueue support in spdyd.
2012-02-10 02:06:46 +09:00
Tatsuhiro Tsujikawa
bc8b7212b2
Added missing source files in dist
2012-02-10 01:11:13 +09:00
Tatsuhiro Tsujikawa
24aff9ac44
Abstract event polling function in EventPoll.
2012-02-10 00:45:33 +09:00
Tatsuhiro Tsujikawa
ad50b75d75
Fixed compiler warning
2012-02-09 22:48:33 +09:00