Linux sockets working and HTTP bug fix