-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic forwarding uncaught exception #700
Comments
Here's an example of how I'm using it in my code. I'm unsure what exactly causes the exception. It seems to happy randomly after a few minutes of connection. Perhaps because I'm not sending any commands to the remote host? |
I don't think the As for the assertion failure, can you try the version in the "develop" branch and see if that fixes your issue? A couple of previous commits introduced some problems in that area, and I fixed most of them in 2.17.0, but there were still some cases where that version was having problems. I've since reverted both the original change and the attempt to improve it and took an entirely different approach, but haven't had had a chance to do a new release which includes that change. |
I'm currently using 2.17.0 from pypi. I'll try using a version built from the develop branch. It may take a while to see if that fixes it. It's a quite intermittent issue. Thanks for your help |
Issue hasn't reappeared since switching to the develop branch code. So closing for now. Thanks again for your help. |
Apologies for reopening happened again just as I pressed close. Different traceback however using the develop code. |
Looking over your example more closely, what exactly is "tunnel" being set to here? Are you trying to tunnel traffic through a bastion host? What does that code look like? Also, I'm presuming you have a SOCKS client here making requests to local_host/local_port, and it is telling you what final destination host/port to connect to. Are those connections to some kind of shell on the target system? |
So far, I'm unable to reproduce this when going through a SOCKS dynamic listener and over an SSH tunnel to another host, with the final target host sending an EOF on the connection. Everything looks good here in terms of handling EOF and cleaning up the connection. So far, though, I haven't added any kind of tunnel. Once I know more about what you are doing with that, I'll try and include it in my testing. |
The text was updated successfully, but these errors were encountered: