gitea: Gitea doesn't open more than 5 tabs in browser
- Gitea version (or commit ref): 1.12.0
- Git version: 2.17.1
- Operating system: Ubuntu 18.04.3 LTS
- Database (use
[x]):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Not relevant
- Log gist:
Description
I open pull request with multiple commits, then i open 5 new tabs in browser with each commit. Everything is ok. When i open the sixth tab and further they hang with message “Waiting for available socket…” until i close one of the previously opened tabs. It can be reproduced in any browser. What can this be connected to?
Screenshots
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 5
- Comments: 28 (13 by maintainers)
Commits related to this issue
- Move EventSource to SharedWorker Move EventSource to use a SharedWorker. This prevents issues with HTTP/1.1 open browser connections from preventing gitea from opening multiple tabs. Also adds severa... — committed to zeripath/gitea by zeripath 4 years ago
- Move EventSource to SharedWorker (#12095) Move EventSource to use a SharedWorker. This prevents issues with HTTP/1.1 open browser connections from preventing gitea from opening multiple tabs. Als... — committed to go-gitea/gitea by zeripath 4 years ago
- Move EventSource to SharedWorker (#12095) Backport #12095 Move EventSource to use a SharedWorker. This prevents issues with HTTP/1.1 open browser connections from preventing gitea from opening multi... — committed to zeripath/gitea by zeripath 4 years ago
- Move EventSource to SharedWorker (#12095) (#12130) * Move EventSource to SharedWorker (#12095) Backport #12095 Move EventSource to use a SharedWorker. This prevents issues with HTTP/1.1 open ... — committed to go-gitea/gitea by zeripath 4 years ago
- Move EventSource to SharedWorker (#12095) Move EventSource to use a SharedWorker. This prevents issues with HTTP/1.1 open browser connections from preventing gitea from opening multiple tabs. Als... — committed to ydelafollye/gitea by zeripath 4 years ago
Also Reproducible
version: 1.12.1 proxy: apache 2.4 env: docker container
curl 'https://GITEA_HOST/user/events' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0' -H 'Accept: text/event-stream' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'DNT: 1' -H 'Connection: keep-alive' -H 'Cookie: lang=en-US; i_like_gitea=33dxxxxxxxxx270; _csrf=zIz1_5HrJzMfqWC4XXXXXXXXXXXXXXXXXXXXXOTQyNw' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache'It seems I do. Both in Firefox and in Chromium.
I just have to Login and from the Dashboard open multiple commits in tabs. If then I click on “View source” it will not load until I close enough(about 5 tabs are left open) tabs.
It seems to be about 5 tabs in each browser, as I could test Chromium while Firefox tabs were still open.
Same problem. But I could not reproduce this issue without a reverse proxy server (nginx in my case). By the way, in Firefox pages stop loading after five clicks on the site in one tab.
UPD: Using http2 in nginx solved the problem
Can confirm, opening any new tabs after 6 have loaded for me results in awaiting for socket. Hosting on Docker as well.