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

355 Commits

Author SHA1 Message Date
Tatsuhiro Tsujikawa
93953c102b Fixed memory leak in unittest 2012-04-04 00:56:21 +09:00
Tatsuhiro Tsujikawa
4456d2506d Added callbacks for CREDENTIAL frame. 2012-04-02 22:44:37 +09:00
Tatsuhiro Tsujikawa
169857742b Call on_ctrl_send_callback and before_ctrl_send_callback for WINDOW_UPDATE. 2012-03-30 00:17:01 +09:00
Tatsuhiro Tsujikawa
90c2739a9c Renamed spdylay_frame.common as spdylay_frame.ctrl 2012-03-30 00:07:27 +09:00
Tatsuhiro Tsujikawa
b8f1851aff Updated README.rst 2012-03-30 00:04:08 +09:00
Tatsuhiro Tsujikawa
db04143f32 Use assert instead of abort 2012-03-30 00:02:42 +09:00
Tatsuhiro Tsujikawa
ba56ed6c48 Hide spdylay_data from public API.
The spdylay_data contains full of implementation details and is not
used in public API. It should be hidden.
The spdylay_frame union now only contains the control frame.
2012-03-29 23:59:51 +09:00
Tatsuhiro Tsujikawa
67e83e09a6 Fixed duplicate name/value header block detection 2012-03-29 23:50:08 +09:00
Tatsuhiro Tsujikawa
dea8a484b2 Documented required packages. 2012-03-29 02:33:34 +09:00
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
efebc1e1af Made SPDYLAY_PROTO_SPDY2 and SPDYLAY_PROTO_SPDY3 enum 2012-03-27 18:23:05 +09:00
Tatsuhiro Tsujikawa
c23a86510e Made spdynative noinst 2012-03-27 00:11:47 +09:00
Tatsuhiro Tsujikawa
31286d9326 Updated README.rst 2012-03-26 23:46:02 +09:00
Tatsuhiro Tsujikawa
200012f1b5 Removed SPDYLAY_SPDY2_PRI_LOWEST and SPDYLAY_SPDY3_PRI_LOWEST macros.
Made spdylay_session_get_pri_lowest() to get the lowest priority value
for the current session.

This change allows the application code to get the lowest priority value
without knowing the protocol version which the current session uses.
2012-03-26 23:35:20 +09:00
Tatsuhiro Tsujikawa
262cda86e8 Issue RST_STREAM with PROTOCOL_ERROR if invalid header block is received.
We say the header block is invalid if at least one of the following
condition is true:
There are duplicate header names; or the header names are not
encoded in US-ASCII character set and not lower cased; or the
header name is zero-length string; or the header value contains
multiple in-sequence NUL bytes.

spdylay_frame_unpack_nv() returns SPDYLAY_ERR_INVALID_HEADER_BLOCK
if the unpacking suceeded but it found the header block is invalid.
This means that caller treats it as success, but do additional
processing for invalid header block if it wants.
The functions calling spdylay_frame_unpack_nv() also return
SPDYLAY_ERR_INVALID_HEADER_BLOCK.
2012-03-26 23:19:58 +09:00
Tatsuhiro Tsujikawa
5deef03687 Moved include of arpa/inet.h to spdylay_net.h
spdylay_net.h is compatibility layer for network related header files.
In the nature of spdylay library it should not depend on the actual
networking implementations, but we need some system headers for
optimization. Currently, arpha/inet.h and netinet/in.h are needed for
ntoh*/hton* functions.
2012-03-24 00:14:04 +09:00
Tatsuhiro Tsujikawa
e9b56ab1f6 Added @DEFS@ to CPPFLAGS/CFLAGS. 2012-03-24 00:07:56 +09:00
Tatsuhiro Tsujikawa
54fbae7fe0 Check netinet/in.h. Disable AC_FUNC_MALLOC on cross-compiling.
Added AC_CANONICAL_{BUILD,HOST,TARGET}
2012-03-23 23:49:07 +09:00
Tatsuhiro Tsujikawa
9e716eb635 Code cleanup: C89 and old-style-prototypes and definition. 2012-03-23 02:17:48 +09:00
Tatsuhiro Tsujikawa
72b6c7a1db Moved LT_PREREQ after AC_INIT. Use LT_INIT instead of AC_PROG_LIBTOOL 2012-03-22 00:51:36 +09:00
Tatsuhiro Tsujikawa
f40615a3dc Updated doc 2012-03-19 00:47:15 +09:00
Tatsuhiro Tsujikawa
33e86024d9 Updated doc 2012-03-17 23:44:49 +09:00
Tatsuhiro Tsujikawa
742a8bbac9 Added spdylay_session_mem_recv()
spdylay_session_mem_recv() processes input bytes as the received data
from the remote endpoint. spdylay_session_recv() uses it internally.
The spdylay_inbound_buffer and ibuf member in spdylay_session is removed.
The buffer is allocated in the stack when spdylay_session_recv() is called.
2012-03-17 23:39:38 +09:00
Tatsuhiro Tsujikawa
425a9558d7 Fixed memory leak in unit test 2012-03-17 23:03:11 +09:00
Tatsuhiro Tsujikawa
8f038ae4b6 Added spdylay_session_get_outbound_queue_size() 2012-03-15 23:06:28 +09:00
Tatsuhiro Tsujikawa
b8e4116f9a Updated doc 2012-03-15 22:39:26 +09:00
Tatsuhiro Tsujikawa
488b5acec7 Sort nv after 3to2 and 2to3 translation. 2012-03-14 22:53:14 +09:00
Tatsuhiro Tsujikawa
9a4be04c79 Fixed heading level 2012-03-14 02:20:53 +09:00
Tatsuhiro Tsujikawa
1dcab9352e Updated README.rst 2012-03-14 00:49:16 +09:00
Tatsuhiro Tsujikawa
5275b66e42 Added URIs to project/code hosting sites. 2012-03-14 00:47:03 +09:00
Tatsuhiro Tsujikawa
a01b63b37a Added doc about the required members for spdylay_session_callbacks when
it is passed to spdylay_session_{client,server}_new().
2012-03-14 00:36:53 +09:00
Tatsuhiro Tsujikawa
07b02404c3 Added API reference generator script.
Formatted the public APIs with Sphinx syntax.
2012-03-14 00:32:52 +09:00
Tatsuhiro Tsujikawa
1c09a69d58 Set default_role and domain 2012-03-13 21:36:25 +09:00
Tatsuhiro Tsujikawa
f346b8f88b Added sphinx doc 2012-03-11 23:18:09 +09:00
Tatsuhiro Tsujikawa
686c2ea95d Merge git://github.com/sorced-jim/spdylay into sorced-jim-master 2012-03-11 22:44:39 +09:00
Tatsuhiro Tsujikawa
6024106695 Issue stream error with the status code STREAM_IN_USE if multiple SYN_REPLY
frames are received for the same active stream ID.
2012-03-11 22:42:22 +09:00
Tatsuhiro Tsujikawa
ce6dc1303e Issue session error with PROTOCOL_ERROR if SYN_STREAM with a stream ID
which is less than any previously received SYN_STREAM.
2012-03-11 19:27:33 +09:00
Tatsuhiro Tsujikawa
8284746163 spdylay_submit_syn_stream: Return SPDYLAY_ERR_INVALID_ARGUMENT if even
Associated-To-Stream-ID is specified.
Check the Associated-To-Stream is active before sending SYN_STREAM.
2012-03-11 18:55:40 +09:00
Tatsuhiro Tsujikawa
bee873712a Updated README.rst 2012-03-11 00:21:00 +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
02924b6dd0 Added spdylay_submit_settings 2012-03-10 18:41:01 +09:00
Tatsuhiro Tsujikawa
82e20192d8 Added functions to process received SETTINGS frame.
Now remote and local settings are stored separately.
The initial window size is included in SETTINGS frame, all active stream's
window sizes are now updated.
Removed the initial_window_size member from spdylay_stream because
it is the same as remote_settings's initial window size.
2012-03-10 00:10:11 +09:00
Tatsuhiro Tsujikawa
6c9e79e8ca Use SPDY/3 name in spdylay_settings_flag.
Added SPDYLAY_SETTINGS_CLIENT_CERTIFICATE_VECTOR_SIZE.
2012-03-09 21:38:05 +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
d05d29b507 Added SPDY/3 SETTINGS frame pack/unpack 2012-03-08 23:49:26 +09:00
Tatsuhiro Tsujikawa
643238813d Added doc for spdylay_error values. 2012-03-08 22:44:17 +09:00
Tatsuhiro Tsujikawa
e2092966ef Mentioned on_ctrl_not_send_callback in spdylay_session_send doc. 2012-03-08 22:02:48 +09:00
Tatsuhiro Tsujikawa
fcde841cab Added spdylay_is_fatal 2012-03-08 00:40:17 +09:00
Tatsuhiro Tsujikawa
0a7c510147 Renamed SPDYLAY_ERR_STREAM_ALREADY_CLOSED as SPDYLAY_ERR_STREAM_CLOSED
Added doc for spdylay_error values
2012-03-08 00:37:18 +09:00