Skip to content
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

timeout in waiting for rekeying process #604

Open
0x87e5 opened this issue Jul 23, 2024 · 2 comments
Open

timeout in waiting for rekeying process #604

0x87e5 opened this issue Jul 23, 2024 · 2 comments

Comments

@0x87e5
Copy link

0x87e5 commented Jul 23, 2024

I encountered an issue while using the JSch SFTP functionality. After running my program for an extended period, I received the following error:
image
Upon examining the JSch source code, it appears to be a bug. The kex_start_time variable in Session.java should be volatile. Additionally, on line 846 of Session.java, the assignment of kex_start_time should occur before the assignment of in_kex to avoid a timeout misjudgment in the Session.write function.

norrisjeremy added a commit to norrisjeremy/jsch that referenced this issue Jul 23, 2024
@norrisjeremy
Copy link
Contributor

Hi @0x87e5,

I've opened #605 to incorporate your suggested change.

Thanks,
Jeremy

@norrisjeremy
Copy link
Contributor

Hi @0x87e5,

Can you confirm the 0.2.19 JSch release fixes the issue you encountered?

Thanks,
Jeremy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants