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

Update/Extend session timeout for commands like 'top' #65

Open
preetampatil3d opened this issue Jan 10, 2018 · 0 comments
Open

Update/Extend session timeout for commands like 'top' #65

preetampatil3d opened this issue Jan 10, 2018 · 0 comments

Comments

@preetampatil3d
Copy link

preetampatil3d commented Jan 10, 2018

Hello,

Currently we extend session on every keyword type in terminal by adding AuthUtil.setTimeout(httpSession) in SecureShellWS/onMessage.

But if we type commands like 'top' session will not update. So i have added AuthUtil.setTimeout(httpSession) in SentOutputTask on every response from server. It will work fine some time. but after it throws bellow error.

java.lang.IllegalStateException
	at org.eclipse.jetty.server.session.AbstractSession.checkValid(AbstractSession.java:106)
	at org.eclipse.jetty.server.session.HashedSession.checkValid(HashedSession.java:79)
	at org.eclipse.jetty.server.session.AbstractSession.changeAttribute(AbstractSession.java:518)
	at org.eclipse.jetty.server.session.AbstractSession.setAttribute(AbstractSession.java:469)
	at com.ec2box.common.util.AuthUtil.setTimeout(AuthUtil.java:186)
	at com.ec2box.manage.task.SentOutputTask.run(SentOutputTask.java:67)
	at java.lang.Thread.run(Unknown Source)

Can you please suggest me any alternate way to extend session for above scenario or way to solve above issue.

Thanks in advance.

@preetampatil3d preetampatil3d changed the title Update session timeout for commands like 'top' Update/Extend session timeout for commands like 'top' Jan 10, 2018
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

1 participant