客户端有没有办法检测到连接已成功打开?

问题描述

我的服务器可以拒绝客户端的设置。可以使用RSocket.onClose()在客户端上检测到。
但是有没有办法检测到连接已成功打开,即服务器接受了设置有效负载
我想要onopened()之类的东西,当服务器和客户端接受器都成功时会触发。

如果我运行下面的代码,即使服务器拒绝了客户端设置,也会调用客户端的接受器,所以我不能使用它。

$ THEANO_FLAGS=device=cuda0 python -c "import theano"
 Can not use cuDNN on context None: cannot compile with cuDNN. We got this error:
 b'/home/phuong/data/anaconda3/bin/x86_64-conda_cos6-linux-gnu-ld: cannot find -l 
 cudnn\ncollect2: error: ld returned 1 exit status\n'
 Mapped name None to device cuda0: GeForce GTX 1080 Ti (0000:01:00.0)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)