1
0
mirror of https://github.com/moparisthebest/spdylay synced 2024-11-17 06:55:02 -05:00
Commit Graph

37 Commits

Author SHA1 Message Date
Tatsuhiro Tsujikawa
0be5ac6ffb spdycat: use locale-free strieq instead strcasecmp 2012-08-21 23:22:33 +09:00
Stephen Ludin
2266b102e3 Adding arbitrary headers form the command line 2012-08-21 21:28:06 +09:00
Tatsuhiro Tsujikawa
1199db690e gcc-4.7 fix 2012-06-08 21:40:03 +09:00
Jim Morrison
b1c0287c84 Enable writing partial buffers. 2012-06-04 13:01:36 -07:00
Tatsuhiro Tsujikawa
991ded912d Added -a, --get-asserts option to spdycat
If this option is used, spdycat also downloads assets such as
stylesheets, images and script files linked from the downloaded
resource. They are queued in the same SPDY session.
2012-05-19 17:09:40 +09:00
Tatsuhiro Tsujikawa
aba18f4ba7 Return SPDYLAY_ERR_EOF when SSL/TLS or underlying TCP connection is closed. 2012-05-11 00:22:38 +09:00
Tatsuhiro Tsujikawa
0288bedabb Renamed FRAME_TOO_LARGE as SPDYLAY_FRAME_TOO_LARGE 2012-05-09 23:29:33 +09:00
Tatsuhiro Tsujikawa
21e85281fa Added debug output using on_invalid_ctrl_recv_callback to spdycat. 2012-05-09 23:27:44 +09:00
Tatsuhiro Tsujikawa
d377fe0dc6 Added spdylay_strerror() public API. 2012-05-09 23:01:46 +09:00
Tatsuhiro Tsujikawa
c68a0b5e6d Added spdylay_on_unknown_ctrl_recv_callback.
This callback function is invoked when the unknown frame type is received.
Added debug output using this callback to spdycat.
2012-05-09 22:41:08 +09:00
Tatsuhiro Tsujikawa
171bede1fa Added spdylay_session_on_ctrl_recv_parse_error_callback.
This callback function is invoked when the received frame data could not
be parsed correctly.
Added debug output using this callback to spdycat.
2012-05-09 21:55:21 +09:00
Tatsuhiro Tsujikawa
5d1937927c Added -w, --window-bits option to spdycat.
This option sets the initial window size bits.
2012-05-08 21:47:45 +09:00
Tatsuhiro Tsujikawa
c009b1e65c Call ERR_clear_error() before SSL I/O functions. 2012-05-07 23:22:40 +09:00
Tatsuhiro Tsujikawa
4d8273a052 In event loop condition, only consider spdylay_session_want_{read,write}. 2012-04-28 01:07:36 +09:00
Tatsuhiro Tsujikawa
2568fb95b6 spdycat: Don't include port in host header field if port == 443.
Added accept header field.
Use SPDYLAY_VERSION in user-agent header field.

Some sites do not like 443 is in host header field.
2012-03-09 02:36:55 +09:00
Tatsuhiro Tsujikawa
185d929d86 Translate received SPDY/2 name/value pairs into SPDY/3 style.
The callback functions receives SPDY/3 style name/value pairs.
2012-03-07 00:42:47 +09:00
Tatsuhiro Tsujikawa
8fd2fabef8 Made spdylay_select_next_protocol() return SPDY protocol version if one of
SPDY versions is selected.
2012-03-02 22:52:01 +09:00
Tatsuhiro Tsujikawa
ae0bac563e Added -3, --spdy3 option to spdycat. 2012-02-26 18:13:56 +09:00
Tatsuhiro Tsujikawa
70ebf673fc Added experimental spdy/3 support to spdyd, spdynative and spdycat 2012-02-26 01:31:45 +09:00
Tatsuhiro Tsujikawa
8693874340 Added SPDY/3 flow control. 2012-02-26 00:12:32 +09:00
Jim Morrison
f404142b17 Revert the asynchronous SSL_connect. 2012-02-20 13:15:02 -08:00
Jim Morrison
6e7025b9f5 Test that FLAG_FIN is set if the read callback is NULL. 2012-02-20 13:12:13 -08:00
Tatsuhiro Tsujikawa
4dc3214222 Added example of node.native style spdy server 2012-02-14 23:54:23 +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
2c5c60b752 Updated according to spdylay_select_next_protocol change 2012-02-08 21:52:44 +09:00
Tatsuhiro Tsujikawa
dfce262fe5 Added non-blocking SPDY server spdyd. It only handles static contents. 2012-02-08 01:54:13 +09:00
Tatsuhiro Tsujikawa
d0cd362852 Changed spdylay_select_next_protocol behaviour
It now always select "spdy/2" as a next protocol regardless whether or not
the server advertises it. The NPN draft allows this.
Returning integer version number is not flexible because the selected protcol
is just a string.
The function now returns 0 if the server advertised spdy/2, or -1.
2012-02-05 21:48:20 +09:00
Tatsuhiro Tsujikawa
1f72165549 Added stream_user_data arg to spdylay_submit_request() to identify stream ID later easily.
Specified stream_user_data_arg can be retrieved by
spdylay_session_get_stream_user_data() function. The application code can use
this function insde spdylay_on_ctrl_send_callback() and identify stream ID
for the request associated by the stream_user_data.
The sample usage is in examples/spdycat.cc.
2012-02-04 01:37:21 +09:00
Tatsuhiro Tsujikawa
876c33c562 Merge branch 'master' of https://github.com/sorced-jim/spdylay into sorced-jim-master
Conflicts:
	examples/spdylay_ssl.cc
	tests/Makefile.am
	tests/main.c

Changes:
        spdylay_select_next_protocol() returns -1 if it fails.
        Use cunit without pkg-config because debian does not provide .pc file.
        Some doc updates to suite my taste.
        Added spdylay_npn.h
2012-02-03 23:53:43 +09:00
Jim Morrison
ea60bd8c6e Add an NPN callback helper that finds the correct version of spdy 2012-02-02 16:31:11 -08:00
Tatsuhiro Tsujikawa
db498a7601 Prettify verbose output 2012-02-02 00:37:48 +09:00
Tatsuhiro Tsujikawa
45376c6b11 spdycat: Added host header field to SYN_STREAM. 2012-02-01 21:47:25 +09:00
Tatsuhiro Tsujikawa
0236d0d2df Print details for SETTINGS, RST_STREAM, HEADERS. 2012-02-01 01:16:35 +09:00
Tatsuhiro Tsujikawa
4e192493ab Use gettimeofday instead of clock_gettime and use poll instead of epoll for portability. 2012-01-31 22:04:51 +09:00
Tatsuhiro Tsujikawa
d3a3dc5943 Added proper command-line option support using getopt_long.
Now -nvh option works.
2012-01-31 00:46:46 +09:00
Tatsuhiro Tsujikawa
0b57f01009 Rewritten spdycl as spdycat. 2012-01-30 00:34:10 +09:00