commit | a75dddac3b7773ff542c9be9709678147494163f | [log] [tgz] |
---|---|---|
author | Zhuowei Zhang <zhuoweizhang@yahoo.com> | Sat Nov 16 09:06:42 2024 |
committer | Zhuowei Zhang <zhuoweizhang@yahoo.com> | Wed Nov 20 20:01:17 2024 |
tree | 79d8e6cdec4f4d2116216b9832830dea3405d553 | |
parent | 95a39645044fc83d1a8e47179cf77e5888e79333 [diff] |
wassh: fix showing popup on disconnection when using relay by returning error when writing to a closed relay socket When the ssh connection drops in nassh, pressing any key will show the "Process exited" dialog, with options to reconnect or exit. This works on NaCL, and on wassh with direct connections, but not with relays: pressing keys after the connection drops does nothing. Listen for the disconnection event from the relay stream, and manually force a connection reset error on subsequent writes. Screenshot: https://drive.google.com/file/d/1hJxEQzKab10rwCFtqDJ4jTO46mB2Ud6r/view?usp=sharing I connected to my computer via a websockify relay, then force closed the sshd to terminate the connection. Pressing a key then shows the "Process exited" dialog, like what happens without a relay / what happens in NaCL. Change-Id: I181543b8687bf6c208a2603904aea032999df0af Reviewed-on: https://chromium-review.googlesource.com/c/apps/libapps/+/6027492 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Joel Hockey <joelhockey@chromium.org>
This repository contains the libdot JavaScript library and some web applications that make use of it.
The official copy of this repository is hosted at https://chromium.googlesource.com/apps/libapps.
There is also a mirror on github at https://github.com/libapps/libapps-mirror. A few subprojects are also extracted out into their own git repo and mirrored. Keep in mind that these mirrors may occasionally be behind the official repository.
All changes must go through the Gerrit code review server on https://chromium-review.googlesource.com. Github pull requests cannot be accepted. Please see the HACK.md document in this directory for the details.
libdot/ is a small set of JS libraries initially developed as part of hterm, now available as shared code.
hterm/ is a JS library that provides a terminal emulator. It is reasonably fast, reasonably correct, and reasonably portable across browsers.
nassh/ is the Chrome Secure Shell extension that combines hterm with a build of OpenSSH to provide a PuTTY-like app for Chrome users.
ssh_client/ is the NaCl & WASM port of OpenSSH.
terminal/ is the ChromeOS Terminal application.
wassh/ is the JS part of the WASM OpenSSH port.
wasi-js-bindings/ provides JS bindings for WASI which is used by the WASM port.