Simplify setting the non-blocking flag when creating HTTP sockets.