socket: Set SOL_TCP to IPPROTO_TCP for Mac Os X.

Signed-off-by: Sonny Karlsson <ksonny@lotrax.org>
logger: Uses stack buffer in splice() fallback.

Signed-off-by: Sonny Karlsson <ksonny@lotrax.org>
http: Remove cork before first call to sendfile().

This removes a large delay on Mac OS X when headers and file content
does not fill a single frame.
Deactivating TCP_NOPUSH does not cause pending frames to be sent until
the next write operation.

Signed-off-by: Sonny Karlsson <ksonny@lotrax.org>
liana: Fixes for *bsd sendfile().

Always update file_offset variable.
Return -1 if errno == EAGAIN and no bytes sent.
Use error log instead of trace for Linux sendfile().

Signed-off-by: Sonny Karlsson <ksonny@lotrax.org>