resolve socket error