Optimizing

Optimized the http socket connection