os-js / osjs-xterm-application

OS.js Xterm Application

Home Page:https://manual.os-js.org/v3/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

resize POST call?

elixx opened this issue · comments

commented

I'm running down an issue that I thought was originally due to CloudFlare (524 request time limit exceeded) but now I am seeing the same thing direct to nginx (502 error from nginx) or direct to the npm serve process on :8000. There is a POST to .../resize that never seems to complete:

image

Any guidance would be appreciated

commented

To reproduce would be to spawn an Xterm and resize the window.

Hi, and thanks!

Seems like the endpoint works, but it does not respond with anything 🤦

https://github.com/os-js/osjs-xterm-application/blob/master/server.js#L149

Ideally it should just send OK with a 200 or something.

I published an update to npm that should fix this issue. Run npm update @osjs/xterm-application and restart the server :)

Thanks for reporting!

commented

Awesome, that works great, and fixes that bug although didn't resolve the problem I was originally running down.
Could we have ping / keepalive on the Xterm websocket, as well?

Could we have ping / keepalive on the Xterm websocket, as well?

Feel free to open up an issue about this. Should be fairly simple to implement :)