openwrt / openwrt/packages

ttyd: closes session on firefox after 30 seconds

Open
#13,469 3 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.