event_select does not need pthread header
Set error to 0 at start of network-request-loop