local connection code removed from Ofsocket.ml