_connect.unbind()根据python-ldap3文档,rebind方法应该引发LDAPBindError# import class and constantsdifferent_user_password') print('error in rebind', c.result)
如果凭据无效,或者如果服务器不允许重新绑定,服务器可能会突然关闭连接这个条件由rebind()方法检查,如果需要,就会引发LDAPBin
我一直在查看代码,并且看到了使用资源的尝试。我以前使用过标准的try-catch语句,看起来他们也是这样做的。因此,我的问题是, With Resources与Try-之间有什么区别,哪个更好。下面是对资源的尝试:objects can= new objects("brand");
try (FileOutputStream
asyncio.get_event_loop().run_until_complete(start_server)客户端在Dart中,只需调用ping两次,然后关闭连接当客户端断开连接时,服务器的输出将得到此错误:--> {"jsonrpc":"2.0","methodWebSocket connection is clos