checking existing-socket open before sending data over it on http wrapper