netsock_server close listening socket after accept_loop exits.
missing include
remove old logic that was breaking clean shutdown
use static_cast minimally, avoid reinterpret_cast where possible
don't do math on void*, it's gcc-specific and warns
illegal task::join() throws system_error() just like illegal thread::join()
std::forward in throw_if
implement connection timeouts for http, and ensure sockets hit with timeout are discarded
net tests for http request timeout and connection refused
on close(), log(DFATAL) if errno is EINTR; on Linux it can't happen and appropriate action is unknown
only close an http client socket if it's open
add should-never-happen sanity check of cached stack size
Merge pull request #68 from chipdude/chip/misc

A motley collection
fix duplicate errstr() in http_error exception
set errno to correct value after epoll-reported socket error
use shutdown() to effect controlled stop of netsock_server
as libten uses fcntl, its third parameter is int, not long
formatting consistency with rest of class
provide convenience form of socket_fd::getsockopt, now matching setsockopt
Merge pull request #69 from chipdude/chip/misc

use shutdown() to stop netsock_server; set async socket errno; etc.