1
0
mirror of https://github.com/moparisthebest/spdylay synced 2024-11-14 05:25:07 -05:00
Commit Graph

54 Commits

Author SHA1 Message Date
Tatsuhiro Tsujikawa
8251fa1315 Made OpenSSL not mandatory. Don't build examples if OpenSSL is not found.
Spdylay library itself does not depend on OpenSSL. The example programs
in examples directory do. Spdylay library should be built without
OpenSSL.
2012-03-29 02:13:33 +09:00
Tatsuhiro Tsujikawa
c23a86510e Made spdynative noinst 2012-03-27 00:11:47 +09:00
Tatsuhiro Tsujikawa
e9b56ab1f6 Added @DEFS@ to CPPFLAGS/CFLAGS. 2012-03-24 00:07:56 +09:00
Tatsuhiro Tsujikawa
94c7e89742 Renamed SPDYLAY_CONCURRENT_STREAMS_MAX as
SPDYLAY_INITIAL_MAX_CONCURRENT_STREAMS
2012-03-10 18:49:25 +09:00
Tatsuhiro Tsujikawa
3918d7fa7d spdyd: Send SETTINGS frame after connection is established. 2012-03-10 18:45:38 +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
Jim Morrison
541b6e9bce Ensure that date and content length strings are still valid when they are put into the name values list. 2012-03-02 14:30:35 -08:00
Jim Morrison
ac7b87c7a5 Check Return non-zero for failed spdy requests. 2012-03-02 10:59:07 -08: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
d5cc71c636 Added status_code handling to GOAWAY 2012-02-26 16:26:38 +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
54e4c80b96 Added stream_id argument to spdylay_data_source_read_callback 2012-02-19 23:48:39 +09:00
Tatsuhiro Tsujikawa
e4ad446261 Fixed busy loop: remove marked handler. 2012-02-16 02:51:46 +09:00
Tatsuhiro Tsujikawa
8069575838 Enclose host in [] if host is IPv6 literal address. 2012-02-15 00:14:27 +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
Jim Morrison
c5f5ee5832 Ignore spdyd 2012-02-14 21:24:58 +09:00
Tatsuhiro Tsujikawa
6f0fb62043 Made session_id_seed global 2012-02-12 00:11:52 +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
Jim Morrison
dd5c770f32 Check for openssl >= 1.0.1. Conditionally compile spdyd based on having epoll 2012-02-08 11:08:27 -08:00
Tatsuhiro Tsujikawa
fa312caa06 Check cunit and openssl in configure and set substitute variables. 2012-02-08 23:11:06 +09:00
Tatsuhiro Tsujikawa
2c5c60b752 Updated according to spdylay_select_next_protocol change 2012-02-08 21:52:44 +09:00
Tatsuhiro Tsujikawa
6ac7433a5e Added -D option. Fixed segmentation fault when -d is used. Fixed memory leak. 2012-02-08 02:57:19 +09:00
Tatsuhiro Tsujikawa
fd0e91b082 Set TCP_NODELAY in spdycat 2012-02-08 01:54: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
3bfe0553d1 Call both Spdylay::recv and Spdylay::send on either POLLIN or POLLOUT 2012-02-08 01:33:55 +09:00
Tatsuhiro Tsujikawa
7f41ec03bd Fixed the bug that port number in URI is not parsed properly. 2012-02-07 02:06:51 +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
42f8ef5f99 Added libcrypto to pkg-config args 2012-02-01 21:42:29 +09:00
Jim Morrison
40db6885b7 Automake-zie the examples directory 2012-01-31 11:10:09 -08:00
Tatsuhiro Tsujikawa
78cd59d1d0 Gather prerequisites of spdycat into $(SPDYCAT_OBJS) 2012-02-01 02:19:40 +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
641443f6c5 Added Makefile for examples 2012-01-30 00:35:33 +09:00
Tatsuhiro Tsujikawa
0b57f01009 Rewritten spdycl as spdycat. 2012-01-30 00:34:10 +09:00