replace xsgetn with the latest version in streamsocket.git