ttyd: closes session on firefox after 30 seconds
Nobody has claimed this yet.
- Dominant language
- Makefile
- Stars
- 4.6k
- Forks
- 4k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 134
Description
Maintainer: @tsl0922
Environment: x86_64, APU3, OpenWrt master
Description:
I have installed luci-app-ttyd from master.
I have set the following configuration.
config ttyd 'local'
option interface '@lan'
option command '/usr/libexec/login.sh'
option ssl '1'
option ssl_cert '/etc/uhttpd.pem'
option ssl_key '/etc/uhttpd.key'
No matter if I am logged in or not, after 30 seconds the session is closed and restarted on firefox.
I do not have this behaviour with chromium.
Version:
Chromium: Version 83.0.4103.116 (Developer Build) built on Debian 10.4, running on Deb
Firefox: 68.10.0esr.
Logging:
Tue Sep 22 15:40:19 2020 daemon.notice ttyd[12553]: HTTP /token - 192.168.0.2
Tue Sep 22 15:40:19 2020 daemon.notice ttyd[12553]: WS /ws - 192.168.0.2, clients: 1
Tue Sep 22 15:40:19 2020 daemon.notice ttyd[12553]: started process, pid: 13414
Tue Sep 22 15:40:46 2020 daemon.notice ttyd[12553]: WS closed from 192.168.0.2, clients: 0
Tue Sep 22 15:40:46 2020 daemon.notice ttyd[12553]: killing process 13414 with signal: 1 (SIGHUP)
Tue Sep 22 15:40:46 2020 daemon.notice ttyd[12553]: process killed with signal 1 (SIGHUP), pid: 13414
Tue Sep 22 15:41:19 2020 daemon.notice ttyd[12553]: HTTP /token - 192.168.0.2
Tue Sep 22 15:41:19 2020 daemon.notice ttyd[12553]: WS /ws - 192.168.0.2, clients: 1
Tue Sep 22 15:41:19 2020 daemon.notice ttyd[12553]: started process, pid: 13451
Tue Sep 22 15:41:46 2020 daemon.notice ttyd[12553]: WS closed from 192.168.0.2, clients: 0
Tue Sep 22 15:41:46 2020 daemon.notice ttyd[12553]: killing process 13451 with signal: 1 (SIGHUP)
Tue Sep 22 15:41:46 2020 daemon.notice ttyd[12553]: process killed with signal 1 (SIGHUP), pid: 13451
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the provided luci-app-ttyd configuration in Firefox 68.10.0esr, then inspect the /token and /ws request flow alongside the daemon log. Done means the Firefox session remains connected beyond 30 seconds without repeated WebSocket closure, SIGHUP, and process restart.
Written by the indexing model from the issue text.
Assessment
- Domain
- backend, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100