HTTP eventsource GET / hr_streaming POST mass call
See original GitHub issueVersion: 6.1.0
Environment:
-
Operating system: server Debian 8
-
Browser: Mac OS X 10.10 / Firefox 58.0
-
Node.js: v6.11.3
Steps to reproduce: not able to reproduce - this behavior appear sometimes
Hello guys,
I recently saw in my Nginx (with a nodejs
/express
/primus
/ sockJS
as upstream over HTTPS) logs that sometimes Primus browser clients spam my server logs with a lot of http call. The log extract below is made multiples times per second.
After having a look at Primus source code, i saw a reference on /xhr_streaming
to CORS cross browser compatibility check for XHR but i am not sure that this behavior refer to this as i am not concern with CORS case. All HTTP calls are made from the same origin.
x.x.x.x - - [27/Feb/2018:21:11:07 +0000] "GET /primus/589/vlnmgpne/eventsource?_user=3067bf39-f689-4142-a84d-ab550586d7fc&name=username&client=web&_primuscb=M7Nv3j1 HTTP/1.1" 200 52 "https://iamthereferer.com" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:58.0) Gecko/20100101 Firefox/58.0"
x.x.x.x - - [27/Feb/2018:21:11:07 +0000] "POST /primus/589/kh1wldtk/xhr_streaming?_user=3067bf39-f689-4142-a84d-ab550586d7fc&name=username&client=web&_primuscb=M7Nv3j1&t=1519765801749 HTTP/1.1" 200 2092 "https://iamthereferer.com" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:58.0) Gecko/20100101 Firefox/58.0"
x.x.x.x - - [27/Feb/2018:21:11:07 +0000] "POST /primus/589/kh1wldtk/xhr_streaming?_user=3067bf39-f689-4142-a84d-ab550586d7fc&name=username&client=web&_primuscb=M7Nv3j1&t=1519765801816 HTTP/1.1" 200 2092 "https://iamthereferer.com" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:58.0) Gecko/20100101 Firefox/58.0"
x.x.x.x - - [27/Feb/2018:21:11:07 +0000] "POST /primus/589/kh1wldtk/xhr_streaming?_user=3067bf39-f689-4142-a84d-ab550586d7fc&name=username&client=web&_primuscb=M7Nv3j1&t=1519765801885 HTTP/1.1" 200 2092 "https://iamthereferer.com" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:58.0) Gecko/20100101 Firefox/58.0"
x.x.x.x - - [27/Feb/2018:21:11:07 +0000] "POST /primus/589/kh1wldtk/xhr_streaming?_user=3067bf39-f689-4142-a84d-ab550586d7fc&name=username&client=web&_primuscb=M7Nv3j1&t=1519765801952 HTTP/1.1" 200 2092 "https://iamthereferer.com" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:58.0) Gecko/20100101 Firefox/58.0"
Can anyone give me a tip to understand if this is a normal behavior and why this happen ?
In a normal usage of Websocket with Primus i did never see those http call before.
thank you for the help
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (7 by maintainers)
Top GitHub Comments
sockjs-client
1.1.5
releasedFixed by 041f3abe7c3c34cbf7b820df693b00c211f48b1c.