• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

shellhub-io / ssh
73%

Build:
DEFAULT BRANCH: master
Repo Added 02 Aug 2026 12:13AM UTC
Token uQwSJGh8D1Hcii90UuoMp75KgOO9LtNqg regen
Build 13 Last
Files 12
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • fix/ci-green
  • fix/forward-half-close
  • master

04 Nov 2026 05:48PM UTC coverage: 72.515% (-0.09%) from 72.602%
41880889313

push

github

gustavosbarreto
fix: drain a Windows pty instead of waiting out the timeout

ConPTY output ends only when the console closes, and closeSlave did
nothing on Windows, so every session waited five seconds and dropped
what was unread. closeSlave now closes the console and the pty reads a
duplicate of the output handle, so the copy reaches EOF and each handle
closes once. Before Windows 11 24H2 the close blocks until the output is
read, so it runs in a goroutine and Close discards the rest.

The drain tests ran /bin/sh, which Windows lacks. The burst test uses
PowerShell there and counts x bytes, since ConPTY adds escape sequences.

Fixes: shellhub-io/team#378

1058 of 1459 relevant lines covered (72.52%)

390.88 hits per line

Relevant lines Covered
Build:
Build:
1459 RELEVANT LINES 1058 COVERED LINES
390.88 HITS PER LINE
Source Files on master
  • Tree
  • List 12
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
41880889313 master fix: drain a Windows pty instead of waiting out the timeout ConPTY output ends only when the console closes, and closeSlave did nothing on Windows, so every session waited five seconds and dropped what was unread. closeSlave now closes the consol... push 04 Nov 2026 05:50PM UTC gustavosbarreto github
72.52
41717730322 master fix: half-close only the ended direction of a local port forward DirectTCPIPHandler closed the channel and the target socket as soon as either copy hit EOF, so a client that half-closes after its request lost the reply. Each direction now half-cl... push 03 Nov 2026 09:00PM UTC gustavosbarreto github
72.6
41707071380 fix/ci-green fix: drain a Windows pty instead of waiting out the timeout ConPTY output ends only when the console closes, and closeSlave did nothing on Windows, so every session waited five seconds and dropped what was unread. closeSlave now closes the consol... Pull #3 03 Nov 2026 07:52PM UTC geovannewashington github
72.33
41706909708 fix/ci-green fix: drain a Windows pty instead of waiting out the timeout ConPTY's output pipe ends only when the pseudo console closes, and closeSlave did nothing on Windows, so every session waited five seconds and dropped what was still unread. closeSlave n... Pull #3 03 Nov 2026 07:51PM UTC geovannewashington github
72.33
41706609344 fix/ci-green test: require a pty session to close before the drain timeout On Windows the drain never sees the end of the ConPTY output, so every pty session waits the full five seconds and loses whatever is still unread when the timeout closes the pty. Refs... Pull #3 03 Nov 2026 07:49PM UTC geovannewashington github
72.33
41703361946 fix/ci-green test: run the pty burst test with a command Windows has The burst came from /bin/sh, which Windows lacks, so the handler never started a command and the test failed before reaching the drain. Windows writes the burst with PowerShell and the test ... Pull #3 03 Nov 2026 07:28PM UTC geovannewashington github
72.33
41702908782 fix/ci-green ci: pin charmbracelet/meta workflows and drop the sync jobs Calling meta@main ran whatever charmbracelet pushed with our secrets. The workflows now pin meta's main as of 2026-11-01. lint-sync is gone, since it replaced our lint config, and depend... Pull #3 03 Nov 2026 07:25PM UTC geovannewashington github
72.33
41130459898 master Merge pull request #1 from shellhub-io/ci/sync-lint-config ci: sync golangci-lint config push 30 Oct 2026 09:22PM UTC web-flow github
72.42
41125696343 fix/forward-half-close fix: half-close only the ended direction of a local port forward DirectTCPIPHandler closed the channel and the target socket as soon as either copy hit EOF, so a client that half-closes after its request lost the reply. Each direction now half-cl... Pull #2 30 Oct 2026 08:46PM UTC geovannewashington github
72.6
30737961163 master fix: deliver a command's last output before closing the session push 02 Aug 2026 07:31AM UTC Luis Gustavo S. Barreto github
72.56
See All Builds (13)

Badge your Repo: ssh

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc