Sync up open_socket_in() with APPLIANCE_HEAD. This was the cause