tcp sockets: poll as many events as there are registered file descriptors
http_client: added support for request timeouts (curl style)