Andy Green
ecc2e72ca1
http2 add hpack decode support
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-10-10 06:15:02 +08:00
Andy Green
07631f49af
fix return_http_status adaptation for http2
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-10-10 06:13:40 +08:00
Christian Schüldt
3a01cc896d
ssl renew timeout while post keeps coming
...
Signed-off-by: Christian Schüldt <crilla@kth.se>
2014-10-09 16:58:24 +08:00
Christian Schüldt
fde9379e41
ssl fix service problem in MORE_SERVICE case
...
Signed-off-by: Christian Schüldt <crilla@kth.se>
2014-10-09 08:37:12 +08:00
Andy Green
609ec85869
ssl optimize poll when buffered ssl read data
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-10-09 08:29:22 +08:00
Andy Green
1f5c9f0c31
ssl_capable_read add context param
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-10-09 08:14:30 +08:00
Andy Green
fe3e3e61ec
ssl fix pending reads stuck in ssl layer
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-10-08 12:15:29 +08:00
Andy Green
095d303b49
http2 fix build when http2 disabled
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-10-08 12:15:29 +08:00
Andy Green
3faf44e1d5
http2 headers huffman decoder
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-10-08 12:05:06 +08:00
Andy Green
024eb6c80c
http2 can keep upgraded connection up
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-10-08 12:00:53 +08:00
Andy Green
cade614d16
base64 add back decoder now we need it.patc
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-09-30 16:35:16 +08:00
Andy Green
b08cb50e24
parser default to name parsing if unknown
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-09-30 16:33:56 +08:00
Andy Green
a54f232f07
http2 add h2c upgrade and http2 connmode
...
Connection upgrade handling for h2c
Establish http2 union struct and http2 connmode
No protocol code yet
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-09-30 09:43:14 +08:00
Andy Green
1ee42a5f05
add http2 settings token
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-09-30 08:27:29 +08:00
Andy Green
9887bdb438
test server correct header naming order
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-09-30 08:23:06 +08:00
Andy Green
2af585660d
confirm upgrade actually for websocket
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-09-30 08:15:49 +08:00
Andy Green
104316eb8f
internal SHA1 users all use libwebsockets_SHA1
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-09-26 05:56:23 +08:00
Dnyanesh Gate
759e50cdc8
android fix syslog path
2014-09-26 05:39:05 +08:00
Duncan Tebbs
54d037e177
Pass user_sapce to callback for LWS_CALLBACK_CLIENT_CONNECTION_ERROR
2014-09-26 05:36:37 +08:00
Hiroaki Sakon
c00675cafb
fix required CMake version
...
AG also updated the machine-readable min cmake version
2014-09-23 02:35:05 +08:00
emironov
a49d084429
fix byte order for qnx
2014-09-16 22:49:10 +08:00
Stefan Schuermans
b944cc1248
also callback closed if flushing
2014-09-08 14:01:58 +08:00
Andy Green
8721f4f5f1
fix build for NO_SERVER
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-08-27 16:31:20 +08:00
Andy Green
82bac6baec
defer PONG send until no partial send buffer
...
Reported-by: Andrew Canaday
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-08-24 14:39:19 +08:00
Andrew Canaday
af8db35010
server.c: test **truncated_send_len** for partial
...
Testing against truncated_send_malloc won't work if we've already
buffered and completed a partial buffer, as truncated_send_malloc
isn't free'd until the socket is destroyed.
2014-08-24 10:03:37 +08:00
Andy Green
f012f751aa
accept fail char means we are done
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-08-22 19:38:17 +08:00
Andy Green
727d98d9b1
fix bad cmake args example in README.build
...
As told here
https://github.com/warmcat/libwebsockets/issues/166
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-08-19 19:21:32 +08:00
Andy Green
4b812fe4aa
cleanup style in parser
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-08-19 18:34:31 +08:00
Andy Green
fc9871ec24
fix build without ssl support
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-08-19 08:41:26 +08:00
Andy Green
9ffe40112b
soname 5.0.0
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-08-18 23:21:28 +08:00
Andy Green
14425eae4e
introduce lws_partial_buffered
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-08-18 22:49:39 +08:00
Andy Green
822241c2a7
deprecate no_buffer_all_partials
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-08-18 22:21:51 +08:00
Carl Stehle
66d466a1a4
http keepalive needs to reinit some header union state
...
AG moved the code to the keepalive loop location
2014-08-16 10:17:59 +08:00
Andy Green
b128ccccca
add lws_is_ssl api
...
Suggested by Michael Harbler on the mailing list
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-08-16 09:54:27 +08:00
Karl Palsson
95a8abb030
cyassl: correct include path for 3.1.x
2014-08-15 01:54:59 +08:00
Michael Haberler
a2d3bf1e4d
api: add feature test macro LWS_FEATURE_PROTOCOLS_HAS_ID_FIELD
2014-08-11 20:49:16 +08:00
Andy Green
eabed8defe
protocol struct add user controlled id member
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-08-11 12:11:36 +08:00
Andy Green
afa10d5a89
fix spinning on NULL protocol name
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-08-11 09:11:57 +08:00
Andy Green
62824f96d4
ssl fix excessive crash workaround
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-08-10 09:50:42 +08:00
Andy Green
a40760a2de
no protocol usage inprove docs
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-08-07 16:52:15 +08:00
Andrew Canaday
e917345e05
Reset hdr_parsing_completed for WSI_STATE_HTTP:
...
This fixes a bug where a client issues two GET requests on the same connection
(keep-alive). If the second request is split into two reads, the
hdr_parsing_complete flag gets us into trouble by ending the request read two
early and giving us bogus data.
2014-08-07 12:13:28 +08:00
Andy Green
67f94599d2
trac82 consistently use CONTEXT_PORT_NO_LISTEN
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-07-31 09:44:00 +08:00
Oleh
faeac3c419
ssl allow passing cert passphrase
...
https://github.com/warmcat/libwebsockets/issues/152
2014-07-29 23:18:41 +08:00
Andy Green
c949bb3b49
avoid crash if we dont have new wsi
...
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-07-29 23:02:07 +08:00
Aurelian Pop
d07ea3bf40
Fix TCP keepalive use in UNIX systems
2014-07-29 15:36:06 +03:00
Andrew Canaday
78228ed5cb
Keep-alive: disable timeout and let TCP ka kill.
...
This is required for streaming HTTP connections.
Not sure if there's a more graceful way to handle this
(maybe resetting the timeout in the 'send'-side code?
2014-07-19 07:01:10 +08:00
Andrew Canaday
c7dbad66ab
Make sure headers are parsed before proceeding.
2014-07-19 07:00:52 +08:00
Andrew Canaday
991f1cded8
Only check for '?' URI args during URI path parse
2014-07-19 06:58:53 +08:00
Andy Green
7a8d86e048
handle client protocol lists properly
...
We fail to deal with lists of protocols sent by the client
by picking one from the list properly. This fixes that and
adds protocol lists to the test client for regression testing.
Signed-off-by: Andy Green <andy.green@linaro.org>
2014-07-19 06:52:39 +08:00
Andrew Canaday
3bb0650e6a
Don't need 'content_remain' in libwebsocket_read
2014-07-14 20:33:07 +08:00