-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
File streaming broken with socket.io polling #14067
Comments
@msujew I think you worked on the socket-io infra, right? Any comments off the top of your head? |
Sorry for the late response, but I don't have any clue without digging deeper into this: The HTTP fallback should handle the exact same requests/responses as the websocket backend. Unless the connection is literally dropping responses (which it shouldn't, since it's HTTP) I have no idea why this happens. I'll try to reproduce this once I'm back from vacation. |
any chance you looked into this? I'm experience the same problem. When websockets are disabled, I cannot open any file. |
Fell off the plate - looking into this tomorrow :) |
I was able to reproduce this. Note that the explorer itself works. It's the file streaming that doesn't work. It seems specific to streaming, normal file loading works as expected. I'm already on vacation but I'll get back to this after the start of the new year. |
I actually found the issue fairly quickly, so I just fixed it. See #14659. |
Bug Description:
We have to run Theia through a proxy that doesn't support the Connection "Upgrade" for websocket. So instead we need to rely on socket.io long polling.
With the socket.io connection polling the File Explorer act's randomly and no files are opened in the editor ( regardless of the file type )
I have to go randomly clicking through files till I get one of the opening,
Steps to Reproduce:
Apply the following patch
Or else you may use the following haproxy configurations that will just deny any request with "Upgrade" header.
Additional Information
The text was updated successfully, but these errors were encountered: