profile/ivi/libwebsockets.git
13 years agointerpret new opcode map when 07
Andy Green [Sun, 24 Apr 2011 05:19:22 +0000 (06:19 +0100)]
interpret new opcode map when 07

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoissue new opcodes when 07
Andy Green [Sun, 24 Apr 2011 05:05:29 +0000 (06:05 +0100)]
issue new opcodes when 07

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agowrite client frames the new way for 07
Andy Green [Sun, 24 Apr 2011 05:04:03 +0000 (06:04 +0100)]
write client frames the new way for 07

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agocarry over 06 stuff to 07
Andy Green [Sun, 24 Apr 2011 04:49:44 +0000 (05:49 +0100)]
carry over 06 stuff to 07

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoadd 07 support
Andy Green [Sun, 24 Apr 2011 04:46:23 +0000 (05:46 +0100)]
add 07 support

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agointroduce 07 opcode ordering
Andy Green [Sat, 23 Apr 2011 09:54:53 +0000 (10:54 +0100)]
introduce 07 opcode ordering

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agofix frgmented server reply
Andy Green [Sat, 16 Apr 2011 09:54:28 +0000 (10:54 +0100)]
fix frgmented server reply

Server handshake reply might not come in one packet as pointed out by
Pavel Borzenkov.  This replaces his fix with one directly in the packet
state machine.

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoRevert Pavel's patch looping in recv
Andy Green [Sat, 16 Apr 2011 09:46:21 +0000 (10:46 +0100)]
Revert Pavel's patch looping in recv

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoFix segfault in libwebsocket_write()
Pavel Borzenkov [Fri, 15 Apr 2011 12:17:26 +0000 (13:17 +0100)]
Fix segfault in libwebsocket_write()

Since 'shift' has unsigned integer type,
the following code may lead to infinite cycle
and segfault:

    while (shift >= 0) {
     if (shift)
     buf[0 - pre + n] =
     ((len >> shift) & 127) | 0x80;
     else
     buf[0 - pre + n] =
     ((len >> shift) & 127);
     n++;
     shift -= 7;
    }

Change type to signed integer.

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@auriga.com>
13 years agorecv() may not return all data
Pavel Borzenkov [Fri, 15 Apr 2011 12:16:58 +0000 (13:16 +0100)]
recv() may not return all data

While performing handshake recv() is called only once.
It may return only part of the data and handshake
will fail. This patch modifies libwebsocket_service_fd()
to ensure that there is not data left in the socket.

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@auriga.com>
13 years agoUse IPPROTO_TCP instead of SOL_TCP
Pavel Borzenkov [Fri, 15 Apr 2011 12:16:32 +0000 (13:16 +0100)]
Use IPPROTO_TCP instead of SOL_TCP

This change fixes compilation on *BSD systems.

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@auriga.com>
13 years agoHTTP headers may be case-sensitive
Pavel Borzenkov [Tue, 12 Apr 2011 08:47:50 +0000 (09:47 +0100)]
HTTP headers may be case-sensitive

For the IETF revision 00 send 'Upgrade: WebSocket' header
instead of 'Upgrade: websocket' as described in the IETF standard.
Some servers (for example, phpdaemon) are case-sensitive.

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@auriga.com>
13 years agoselect raw zlib compression
Andy Green [Tue, 22 Mar 2011 09:06:52 +0000 (09:06 +0000)]
select raw zlib compression

Patrick McManus from Mozilla pointed out that the spec requires a specific kind
of zlib compression, which is raw.  You can select that by using a funny api in
zlib.  Mozilla are correcting their compression to this, pywebsockets already did
it right in the first place, libwebsockets should now work OK with those.

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agopass ext pointer in ext callback
Andy Green [Tue, 22 Mar 2011 09:04:01 +0000 (09:04 +0000)]
pass ext pointer in ext callback

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoupdate win32 support for zlib
Peter Hinz [Thu, 10 Mar 2011 18:19:10 +0000 (18:19 +0000)]
update win32 support for zlib

Signed-off-by: Peter Hinz <cerebusrc@gmail.com>
13 years agoRe: Windows port of your libwebsocket
Peter Hinz [Thu, 10 Mar 2011 18:14:01 +0000 (18:14 +0000)]
Re: Windows port of your libwebsocket

The latest code changed need some win32 fixes:

Signed-off-by: Peter Hinz <cerebusrc@gmail.com>
13 years agotry to cover AF_LOCAL in libwebsockets_get_peer_addresses
Andy Green [Wed, 9 Mar 2011 15:13:52 +0000 (15:13 +0000)]
try to cover AF_LOCAL in libwebsockets_get_peer_addresses

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agouse unsigned peer dotted quad
Andy Green [Wed, 9 Mar 2011 15:02:20 +0000 (15:02 +0000)]
use unsigned peer dotted quad

Reported-by: Pierre-Paul Lavoie <ppl@idios.org>
Signed-off-by: Andy Green <andy@warmcat.com>
13 years agobeautify fraggle
Andy Green [Wed, 9 Mar 2011 09:21:24 +0000 (09:21 +0000)]
beautify fraggle

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agolibwebsockets - gcc warnings
Patrick McManus [Wed, 9 Mar 2011 07:18:28 +0000 (07:18 +0000)]
libwebsockets - gcc warnings

you have your makefiles set up to treat warnings as errors, and my gcc
4.4.5 (64 bit) compiler generates 3 warnings that need fixing:

(that sprintf() one is a real bug.. if ext_name contains formatting
characters you are looking at a potential segv).

Signed-off-by: Patrick McManus <mcmanus@ducksong.com>
13 years agodisable nagle algorithm
Andy Green [Tue, 8 Mar 2011 08:56:57 +0000 (08:56 +0000)]
disable nagle algorithm

Ago noticed that some Windows clients experience small packets
from the server being aggregated and set after a long delay
(200-300ms).

He found that TCP_NODELAY on the socket solved this, I tested it
and it didn't have any noticable bad effect, so I implemented it
for all sockets, client and server.

Thans Ago for debugging this and notifying the cause.

Reported-by: Ago Allikmaa <maxorator@gmail.com>
Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoclean fraggle
Andy Green [Tue, 8 Mar 2011 08:43:59 +0000 (08:43 +0000)]
clean fraggle

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agointroduce fraggle test app
Andy Green [Mon, 7 Mar 2011 21:40:59 +0000 (21:40 +0000)]
introduce fraggle test app

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agointroduce libwebsocket_is_final_fragment
Andy Green [Mon, 7 Mar 2011 21:16:31 +0000 (21:16 +0000)]
introduce libwebsocket_is_final_fragment

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agofix misunderstood fragmentation restriction
Andy Green [Mon, 7 Mar 2011 21:14:23 +0000 (21:14 +0000)]
fix misunderstood fragmentation restriction

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoadd CONTINUATION write mode
Andy Green [Mon, 7 Mar 2011 20:47:41 +0000 (20:47 +0000)]
add CONTINUATION write mode

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoexpose SHA1 api
Andy Green [Mon, 7 Mar 2011 20:47:41 +0000 (20:47 +0000)]
expose SHA1 api

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoexpose random api
Andy Green [Mon, 7 Mar 2011 20:47:40 +0000 (20:47 +0000)]
expose random api

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoadd separate server writeable and change naming to match rest of callbacks
Andy Green [Mon, 7 Mar 2011 20:47:39 +0000 (20:47 +0000)]
add separate server writeable and change naming to match rest of callbacks

Notice that the naming is changed, the notification to a server that it can write to
the client is now called LWS_CALLBACK_SERVER_WRITEABLE, and the notification to a client
that it can write to a server is LWS_CALLBACK_CLIENT_WRITEABLE.

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoremove bogus bytes on first line of websockets.c
Andy Green [Mon, 7 Mar 2011 17:54:06 +0000 (17:54 +0000)]
remove bogus bytes on first line of websockets.c

Reported-by: Pierre-Paul Lavoie <ppl@idios.org>
Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoadd explicit libz inclusion
Andy Green [Mon, 7 Mar 2011 17:52:00 +0000 (17:52 +0000)]
add explicit libz inclusion

Reported-by: Pierre-Paul Lavoie <ppl@idios.org>
Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoflush extensions when closing
Andy Green [Mon, 7 Mar 2011 07:08:18 +0000 (07:08 +0000)]
flush extensions when closing

Extensions might be caching stuff that we should spill before a controlled close.
It's not allowed to send anything on the wire after the close request, so we need
to make the extensions spill just before.

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoadd extra state for waiting on close ack with timeout
Andy Green [Mon, 7 Mar 2011 07:08:12 +0000 (07:08 +0000)]
add extra state for waiting on close ack with timeout

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agointroduce test server close testing switch
Andy Green [Mon, 7 Mar 2011 07:08:07 +0000 (07:08 +0000)]
introduce test server close testing switch

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agointerop notes - libwebsocket -06 close
Pat McManus @Mozilla [Mon, 7 Mar 2011 06:06:36 +0000 (06:06 +0000)]
interop notes - libwebsocket -06 close

... this afternoon I was just doing a little
interoperability testing around close... in my test-server I added

 libwebsocket_close_and_free_session(this, wsi, LWS_CLOSE_STATUS_NORMAL);

in order to generate a server driven close.. I hope that was the right
way to go about it. In any event, in generated an invalid websocket
frame - I think you want this patch, or something like it:

Signed-off-by: \"Pat McManus @Mozilla\" <mcmanus@ducksong.com>
13 years agoconfigure add requirement for zlib.h
Andy Green [Sun, 6 Mar 2011 13:37:10 +0000 (13:37 +0000)]
configure add requirement for zlib.h

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoadd compression defeat switch to test client
Andy Green [Sun, 6 Mar 2011 13:32:53 +0000 (13:32 +0000)]
add compression defeat switch to test client

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agointroduce deflate compression extension
Andy Green [Sun, 6 Mar 2011 13:32:53 +0000 (13:32 +0000)]
introduce deflate compression extension

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoallow extensions for parsing
Andy Green [Sun, 6 Mar 2011 13:15:34 +0000 (13:15 +0000)]
allow extensions for parsing

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agointroduce internal extensions array
Andy Green [Sun, 6 Mar 2011 13:15:32 +0000 (13:15 +0000)]
introduce internal extensions array

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoinstantiate extensions server accepted
Andy Green [Sun, 6 Mar 2011 13:15:31 +0000 (13:15 +0000)]
instantiate extensions server accepted

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agodynamically create client extensions offer from extensions list
Andy Green [Sun, 6 Mar 2011 13:15:29 +0000 (13:15 +0000)]
dynamically create client extensions offer from extensions list

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agodocument extension callback reasons
Andy Green [Sun, 6 Mar 2011 13:14:46 +0000 (13:14 +0000)]
document extension callback reasons

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agocallback each active extension on packet tx pre send
Andy Green [Sun, 6 Mar 2011 13:14:42 +0000 (13:14 +0000)]
callback each active extension on packet tx pre send

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agocallback each active extension on packet rx pre parse
Andy Green [Sun, 6 Mar 2011 13:14:15 +0000 (13:14 +0000)]
callback each active extension on packet rx pre parse

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agointroduce lws_send_pipe_choked
Andy Green [Sun, 6 Mar 2011 10:29:39 +0000 (10:29 +0000)]
introduce lws_send_pipe_choked

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agointroduce lws_issue_raw
Andy Green [Sun, 6 Mar 2011 10:29:38 +0000 (10:29 +0000)]
introduce lws_issue_raw

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agodeallocate extension contexts on connection close
Andy Green [Sun, 6 Mar 2011 10:29:38 +0000 (10:29 +0000)]
deallocate extension contexts on connection close

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agocreate server extension response dynamically
Andy Green [Sun, 6 Mar 2011 10:29:35 +0000 (10:29 +0000)]
create server extension response dynamically

This goes through the extentsions the client requested, selects the ones
that we support at the server, and then further calls back to the appropriate
protocol callback in user code to check it's OK to actually use that
extension in this context.  If it is (callback unhandled == it is) then
it's added to the list of extensions sent back to the client.

Accepted extensions are also added to the connection's active extension
list and the private "user" memory allocation for the extension context is
done and bound to the connection.

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agointroduce struct libwebsocket_extension
Andy Green [Sat, 5 Mar 2011 16:12:15 +0000 (16:12 +0000)]
introduce struct libwebsocket_extension

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agofix openssl breakage from win32
Andy Green [Sat, 5 Mar 2011 16:12:04 +0000 (16:12 +0000)]
fix openssl breakage from win32

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agowin32 build fixup missing includes
Andy Green [Sat, 5 Mar 2011 09:04:23 +0000 (09:04 +0000)]
win32 build fixup missing includes

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agointroduce win32 build capability
Peter Hinz [Wed, 2 Mar 2011 22:03:47 +0000 (22:03 +0000)]
introduce win32 build capability

This adds win32 build compatability to libwebsockets.

The patch is from Peter Hinz, Andy Green has cleaned it up a bit and
possibly broken win32 compatability since I can't test it, so there
may be followup patches.  It compiles fine under Linux after this
patch anyway.

Much of the patch is changing a reserved keyword for Visual C compiler
"this" to "context", but there is no real C99 support in the MSFT
compiler even though it is 2011 so C99 style array declarations
have been mangled back into "ancient C" style.

Some windows-isms are also added like closesocket() but these are
quite localized.  Win32 random is just using C library random() call
at the moment vs Linux /dev/urandom.  canonical hostname detection is
broken in win32 at the moment.

Signed-off-by: Peter Hinz <cerebusrc@gmail.com>
Signed-off-by: Andy Green <andy@warmcat.com>
13 years agointroduce LWS_CALLBACK_CLIENT_APPEND_HANDSHAKE_HEADER
Andy Green [Tue, 1 Mar 2011 21:06:02 +0000 (21:06 +0000)]
introduce LWS_CALLBACK_CLIENT_APPEND_HANDSHAKE_HEADER

This adds a callback to protocols[0] which happens when the
Client HTTP handshake packet is being composed.  After all the
headers for the websocket handshake to the server have been
added, the callback is called with a pointer to a char *
that allows extra headers to be added.  See the comments in
libwebsocket.h or the api documentation for example code.

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agointroduce 76 00 client support
Andy Green [Tue, 1 Mar 2011 20:44:24 +0000 (20:44 +0000)]
introduce 76 00 client support

This adds 76/00 client support to libwebsockets.  It's still shipped
by browsers and more importantly still the only version supported by
server stuff like socket.io.

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoupdate README with known good OSX configure
Andy Green [Mon, 28 Feb 2011 07:48:27 +0000 (07:48 +0000)]
update README with known good OSX configure

Christopher Baker sent in a working OSX configure string,
add it to the README

Reported-by: Christopher Baker <me@christopherbaker.net>
Signed-off-by: Andy Green <andy@warmcat.com>
13 years agofix null protocol dereference when closing session
Andy Green [Mon, 28 Feb 2011 07:45:29 +0000 (07:45 +0000)]
fix null protocol dereference when closing session

Thanks to Christopher Baker for pointing out that when we close a session,
if the close is coming before a protocol was negotiated for the connection
or when the protocol was otherwise left at NULL, we'll blow a segfault.

This implements his proposed fix.

Reported-by: Christopher Baker <me@christopherbaker.net>
Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoonly have nonce requirement and processing for exactly 04
Andy Green [Sat, 26 Feb 2011 11:17:48 +0000 (11:17 +0000)]
only have nonce requirement and processing for exactly 04

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agocarry over 05 specific stuff to 06
Andy Green [Sat, 26 Feb 2011 11:13:56 +0000 (11:13 +0000)]
carry over 05 specific stuff to 06

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agochange default client version to 06
Andy Green [Sat, 26 Feb 2011 11:08:46 +0000 (11:08 +0000)]
change default client version to 06

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoremove duplicated poll handling in hangup on client
Andy Green [Sat, 26 Feb 2011 11:06:27 +0000 (11:06 +0000)]
remove duplicated poll handling in hangup on client

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agorequire close reason argument on close and free session
Andy Green [Sat, 26 Feb 2011 11:04:01 +0000 (11:04 +0000)]
require close reason argument on close and free session

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agointroduce 06 close status codes
Andy Green [Sat, 26 Feb 2011 10:40:02 +0000 (10:40 +0000)]
introduce 06 close status codes

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoonly send sec webscoket nonce on 04
Andy Green [Sat, 26 Feb 2011 10:31:41 +0000 (10:31 +0000)]
only send sec webscoket nonce on 04

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agomake origin optional on server
Andy Green [Sat, 26 Feb 2011 10:28:15 +0000 (10:28 +0000)]
make origin optional on server

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agomake origin optional on client
Andy Green [Sat, 26 Feb 2011 10:22:49 +0000 (10:22 +0000)]
make origin optional on client

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoadd callback for OpenSSL client cert verification action
Andy Green [Mon, 21 Feb 2011 08:06:47 +0000 (08:06 +0000)]
add callback for OpenSSL client cert verification action

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoadd callback to allow additional server verification certs
Andy Green [Sun, 20 Feb 2011 11:10:47 +0000 (11:10 +0000)]
add callback to allow additional server verification certs

This adds a LWS_CALLBACK_OPENSSL_LOAD_EXTRA_SERVER_VERIFY_CERTS callback
which offers a chance for the server context to be loaded with additional
certtificates allowing it to verify incoming client certs.  The callback
always comes to protocol[0].

It also introduces the context option LWS_SERVER_OPTION_REQUIRE_VALID_OPENSSL_CLIENT_CERT
which will enforce client cert checking on any ssl connection.

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoadd callback to allow additional client verification certs
Andy Green [Sat, 19 Feb 2011 09:09:11 +0000 (09:09 +0000)]
add callback to allow additional client verification certs

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agointroduce listen on specific interface
Andy Green [Sat, 19 Feb 2011 08:32:53 +0000 (08:32 +0000)]
introduce listen on specific interface

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoREADME update configure advice for apple
Andy Green [Wed, 16 Feb 2011 18:50:01 +0000 (18:50 +0000)]
README update configure advice for apple

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agofix ssl support and confirm builds clean when not configured
Andy Green [Mon, 14 Feb 2011 21:14:37 +0000 (21:14 +0000)]
fix ssl support and confirm builds clean when not configured

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoadd include for gettimeofday even without ssl
Andy Green [Mon, 14 Feb 2011 20:58:26 +0000 (20:58 +0000)]
add include for gettimeofday even without ssl

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoOnly include anything from openssl if configured for it
Darin Willits [Mon, 14 Feb 2011 20:56:24 +0000 (20:56 +0000)]
Only include anything from openssl if configured for it

Signed-off-by: Darin Willits <darin@willits.ca>
13 years agomake test client notice if server closed on him
Andy Green [Mon, 14 Feb 2011 20:25:43 +0000 (20:25 +0000)]
make test client notice if server closed on him

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agobreak client connect into states and apply timeout
Andy Green [Mon, 14 Feb 2011 20:25:43 +0000 (20:25 +0000)]
break client connect into states and apply timeout

Doing a client connect was atomic until now, blocking
all the other service while it waited for proxy and / or
server response.

This patch uses the new timeout system and breaks the
client connect sequence into three states handled by
the normal poll() processing.  It means that there are
now no blocking network delays and it's all handled
by the main state machine.

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agointroduce timeout system
Andy Green [Mon, 14 Feb 2011 17:59:43 +0000 (17:59 +0000)]
introduce timeout system

This adds a concept of timeouts for operations enforced by
connection closure if the timeout is reached.

Once a second all sockets are checked for timing out, every time
there is a service call it checks to see if a second has passed since
the last check and checks if so.

You can also call libwebsocket_service_fd() with a NULL fd to give
the timeouts a chance to be detected; if it's less than a second since
the last check it returns immediately.

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoFix refactor damage from missed debug-only print arg
Timothy J Fontaine [Mon, 14 Feb 2011 17:55:27 +0000 (17:55 +0000)]
Fix refactor damage from missed debug-only print arg

Just a quick follow up there is a compile error at the moment, which I
think is resolved as the following?

Signed-off-by: Timothy J Fontaine <tjfontaine@gmail.com>
13 years agoApple / iOS build compatability patch
Darin Willits [Mon, 14 Feb 2011 17:52:39 +0000 (17:52 +0000)]
Apple / iOS build compatability patch

This allows build on iOS platform, thanks Darin!

Signed-off-by: Darin Willits <darin@willits.ca>
13 years agointroduce this param in callback fix server close on client socket
Andy Green [Mon, 14 Feb 2011 09:14:25 +0000 (09:14 +0000)]
introduce this param in callback fix server close on client socket

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoeliminate dummy 76 challenge content in 04 plus
Andy Green [Mon, 14 Feb 2011 09:14:24 +0000 (09:14 +0000)]
eliminate dummy 76 challenge content in 04 plus

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agounify server and client close
Andy Green [Mon, 14 Feb 2011 08:03:48 +0000 (08:03 +0000)]
unify server and client close

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agoclean-out-poll-array-when-hanging-up-on-client.patch
Andy Green [Sun, 13 Feb 2011 09:15:10 +0000 (09:15 +0000)]
clean-out-poll-array-when-hanging-up-on-client.patch

Signed-off-by: Andy Green <andy.green@linaro.org>
13 years agouplevel-rpm-spec-to-include-new-extpoll-sample.patch
Andy Green [Sun, 13 Feb 2011 09:08:11 +0000 (09:08 +0000)]
uplevel-rpm-spec-to-include-new-extpoll-sample.patch

Signed-off-by: Andy Green <andy.green@linaro.org>
13 years agouse-new-peer-name-api-in-ping.patch
Andy Green [Sun, 13 Feb 2011 09:05:54 +0000 (09:05 +0000)]
use-new-peer-name-api-in-ping.patch

Signed-off-by: Andy Green <andy.green@linaro.org>
13 years agointroduce-libwebsockets_hangup_on_client.patch
Andy Green [Sun, 13 Feb 2011 09:04:21 +0000 (09:04 +0000)]
introduce-libwebsockets_hangup_on_client.patch

Signed-off-by: Andy Green <andy.green@linaro.org>
13 years agoadd-example-protocol-handshake-filter-callback.patch
Andy Green [Sun, 13 Feb 2011 08:54:05 +0000 (08:54 +0000)]
add-example-protocol-handshake-filter-callback.patch

Signed-off-by: Andy Green <andy.green@linaro.org>
13 years agoadd-example-network-filter-callback.patch
Andy Green [Sun, 13 Feb 2011 08:40:37 +0000 (08:40 +0000)]
add-example-network-filter-callback.patch

Signed-off-by: Andy Green <andy.green@linaro.org>
13 years agointroduce-network-connect-filter-callback.patch
Andy Green [Sun, 13 Feb 2011 08:37:12 +0000 (08:37 +0000)]
introduce-network-connect-filter-callback.patch

Signed-off-by: Andy Green <andy.green@linaro.org>
13 years agointroduce-user-handshake-filter-callback.patch
Andy Green [Sun, 13 Feb 2011 08:25:26 +0000 (08:25 +0000)]
introduce-user-handshake-filter-callback.patch

Signed-off-by: Andy Green <andy.green@linaro.org>
13 years agodocument-external-poll-support.patch
Andy Green [Sat, 12 Feb 2011 21:24:03 +0000 (21:24 +0000)]
document-external-poll-support.patch

Signed-off-by: Andy Green <andy.green@linaro.org>
13 years agoadd-ext-poll-callbacks-in-extpoll-test.patch
Andy Green [Sat, 12 Feb 2011 13:15:04 +0000 (13:15 +0000)]
add-ext-poll-callbacks-in-extpoll-test.patch

Signed-off-by: Andy Green <andy.green@linaro.org>
13 years agointroduce-external-poll-callbacks.patch
Andy Green [Sat, 12 Feb 2011 13:14:11 +0000 (13:14 +0000)]
introduce-external-poll-callbacks.patch

Signed-off-by: Andy Green <andy.green@linaro.org>
13 years agointroduce-libwebsockets-test-server-extpoll.patch
Andy Green [Sat, 12 Feb 2011 12:07:23 +0000 (12:07 +0000)]
introduce-libwebsockets-test-server-extpoll.patch

Signed-off-by: Andy Green <andy.green@linaro.org>
13 years agoexport-libwebsocket_service_fd-api.patch
Andy Green [Sat, 12 Feb 2011 11:57:45 +0000 (11:57 +0000)]
export-libwebsocket_service_fd-api.patch

Signed-off-by: Andy Green <andy.green@linaro.org>
13 years agodecouple-service-from-fd-array-index.patch
Andy Green [Sat, 12 Feb 2011 11:57:43 +0000 (11:57 +0000)]
decouple-service-from-fd-array-index.patch

This patch removes the relationship between position in the
pollfd[] array and any meaning about the type of socket.

It also refactors the service loop so there is a per-fd
function that detects the mode of the connection and services
it accordingly.

The context wsi * array is removed and a hashtable introduced
allowing fast wsi lookup from just the fd that it is
associated with

Signed-off-by: Andy Green <andy@warmcat.com>
13 years agooptimize-random-device-open.patch
Andy Green [Thu, 10 Feb 2011 09:32:24 +0000 (09:32 +0000)]
optimize-random-device-open.patch

Signed-off-by: Andy Green <andy.green@linaro.org>
13 years agooptimize-server-for-all-zero-nonce-case.patch
Andy Green [Thu, 10 Feb 2011 09:22:35 +0000 (09:22 +0000)]
optimize-server-for-all-zero-nonce-case.patch

Signed-off-by: Andy Green <andy.green@linaro.org>
13 years agointroduce-new-05-socket-closure-rules.patch
Andy Green [Thu, 10 Feb 2011 09:07:05 +0000 (09:07 +0000)]
introduce-new-05-socket-closure-rules.patch

Signed-off-by: Andy Green <andy.green@linaro.org>
13 years agoparse-and-reject-extensions-header.patch
Andy Green [Wed, 9 Feb 2011 08:58:42 +0000 (08:58 +0000)]
parse-and-reject-extensions-header.patch

Signed-off-by: Andy Green <andy@linaro.org>