Closed haowaiwai closed 2 years ago
I have tested between Windows 11 and a Mac OS. Succeeded with python-ndn/example consumer.py and producer.py. Please let me know if the problem has not been solved.
I think the problem has not been fixed, we meet the problem between Linux and Linux server,Failed with nfdc/C++,the command of "nfdc face create remote tcp://x.x.x.x:6363".
is yanfd setting SO_REUSEADDR
on the socket?
is yanfd setting
SO_REUSEADDR
on the socket?
But I think he is using two machines for test, so this shouldn't be the problem.
The original code tried to specify the local TCP port number in connect(), which causes problem in Linux. Now I removed that argument and tested it on a Ubuntu 22.04 Docker. Should working now.
The reason seems to be the remote YaNFD side. The TCP listener considers the remote URI of the new face as an UDP face (with RemoteURI=udp4://XX:6363, LocalUI=tcp4://XX:6363), and thus it is unable to maintain the connection. I will investigate this problem but I'm not sure when I can fix it. If you are willing to, please open an issue on GitHub.
from the intranet: nfdc face create remote tcp://120.53.13.74:6363 Error 406 when creating face: Transport error
the remote yanfd log: WARN[0481] [FaceMgmt] Unable to create unicast TCP face with URI tcp4://120.53.13.74:6363:Unable to connect to remote endpoint: dial tcp4 :6363->120.53.13.74:6363: bind: address already in use