Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
5.15.3
-
Windows 10
-
da30f70fe (dev), edd1df7dc (dev), 8766aa3d1 (6.6)
Description
When connecting to a web socket server via a ngnix proxy then it will fail to connect since it is not requesting the authentication and it will either fail with ProxyAuthenticationRequired or ProxyProtocolError.
To reproduce using the attached example which provides the proxy and a Python based websocket server then do the following:
- Modify the nginx.conf file in nginx-1.18.0/conf to have the right path for the auth_basic_user_file entry
- Modify the startnginx.bat file to have the right paths too
- Run "python setup.py install" in simple-websocket-server
- Run "python SimpleExampleServer.py" in simple-websocket-server/SimpleWebSocketServer
- Run startnginx.bat
- Build and run the example and try to connect to the server (the proxy is on 5000 and the server is 8000)
Note that this is setup for Windows, but you may be able to get it running easily enough on other platforms
Attachments
For Gerrit Dashboard: QTBUG-92858 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
448126,15 | Support 401 response for websocket connections | dev | qt/qtwebsockets | Status: MERGED | +2 | 0 |
498245,3 | Split error message about unsupported WWW-Authenticate challenges | dev | qt/qtwebsockets | Status: MERGED | +2 | 0 |
498296,2 | Split error message about unsupported WWW-Authenticate challenges | 6.6 | qt/qtwebsockets | Status: MERGED | +2 | 0 |