Commit Graph

15 Commits

Author SHA1 Message Date
Quentin Perez 6500449916 Added mutex to avoid concurrent writes 2015-09-30 16:59:38 +02:00
Iwasaki Yudai 4f75000256 Send data in base64 format
Raw data sometimes include invalid UTF-8 bytes and that brings errors to
WebSocket clients. To avoid the errors, encode data into base64 before
sending it.
2015-09-02 20:16:35 -07:00
Iwasaki Yudai 83923b6f39 Check config file syntax 2015-09-01 20:42:52 -07:00
Iwasaki Yudai 00ddf781de Send ping/pong 2015-08-31 21:34:54 -07:00
Iwasaki Yudai d3e48aa3ae Merge profile and config files and support custom index file 2015-08-29 13:23:00 +09:00
Iwasaki Yudai 02e0b6fafd Use `WriteMessage` to simplify 2015-08-28 17:49:25 +09:00
Iwasaki Yudai c71cc21721 Send SIGHUP to process after closing PTY
POSIX doesn't grantee that a blocked Read() operation will be released
after closing the file. Moreover, the pty file left intact even after
closing the file and the process keeps running in this case.
2015-08-28 17:22:42 +09:00
Iwasaki Yudai 4b67e3059d Support config file 2015-08-27 17:59:49 +09:00
Iwasaki Yudai d4475579ff Close listener after calling `StartRoutine()`
This change prevents the listener from closing itself before
establishing the websocket session with the client.
2015-08-24 12:15:24 -07:00
Iwasaki Yudai e613b29cc3 Shutdown server gracefully with Ctrl-C 2015-08-24 19:22:25 +09:00
Iwasaki Yudai acacba6f03 Support auto reconnection
A new option `--auto-reconnect` which takes seconds to reconnect is
added.
2015-08-24 07:14:24 +09:00
Iwasaki Yudai 45f65bfc29 Support profile files to customize hterm 2015-08-23 22:58:01 +09:00
Iwasaki Yudai a765d6c660 Set window title by control message 2015-08-23 20:54:46 +09:00
Iwasaki Yudai beda1d7ab7 Close pty 2015-08-21 19:08:51 +09:00
Iwasaki Yudai b68e889762 Restructure handler function and move methods to clientContext 2015-08-21 19:01:09 +09:00