POLLOUT during wait for server response not an error

Signed-off-by: Andy Green <andy.green@linaro.org>
dont sweat unkknown method for client

Signed-off-by: Andy Green <andy.green@linaro.org>
cmake win32 change helper includes to HDR_PUBLIC so they install

Signed-off-by: Andy Green <andy.green@linaro.org>
Fix printf format error

Signed-off-by: Henrik Abelsson <henrik@abelsson.com>
dont leak when protocol agreement probs

Signed-off-by: Andy Green <andy.green@linaro.org>
correct example lws_write in header

Signed-off-by: Alex Rhatyshnyak <a.rhatushnyak@klervi.com>
cmake fix install path

Signed-off-by: Andy Green <andy.green@linaro.org>
reduce httpd close debug spew

Signed-off-by: Andy Green <andy.green@linaro.org>
clear down wsi_lookup on allocation and clear pollfd revents if serviced

This should get rid of a valgrind uninitialized report when using extpoll,
and gives a new way to share the poll loop with external sockets.

If a pollfd says it has something, you can just pass it to
libwebsocket_serice_fd() whether it is a socket handled by lws or not.
If it sees it is a lws socket, the traffic will be handled and
pollfd->revents will be zeroed now.

If the socket is foreign to lws, it leaves revents alone.  So you can see
if you should service by checking the pollfd revents after letting
lws try to service it.

Signed-off-by: Andy Green <andy.green@linaro.org>
document revent clearing scheme

Signed-off-by: Andy Green <andy.green@linaro.org>
remove autotools build

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