Updated http code to use nonblocking, net::all changes