Closed temaivanoff closed 1 year ago
Win2016 - 10.0.14393 Hi, this._inSocket generate event close on start 10 ms . Error event not handle. this._outSocket stable work.
this._inSocket
close
this._outSocket
if debug console powershell write i see data node-pty, write not work
node-pty
const term = pty.startProcess(...); console.log(term); const socket_out = new net.Socket(); socket_out.setEncoding('utf8'); socket_out.connect(term.conout, function () { console.log('out redy') }); socket_out.on('data', data => { console.log(data); }); const socket_in = new net.Socket(); socket_in.setEncoding('utf8'); socket_in.connect(term.conin, function () { console.log('in redy') }); socket_in.on('close', () => console.log('close.........')) ------------------------------------------------------------------------------------------- C:\winDbg>node test.js { innerPid: 2176, innerPidHandle: 504, pid: 508, pty: 1, fd: -1, conin: '\\\\.\\pipe\\winpty-conin-5840-1-1d91952df1cb853-9c26312e05cd70f5c7bc9947b6b6e717', conout: '\\\\.\\pipe\\winpty-conout-5840-2-1d91952df1cb853-56440e4322169a5ed011138f270079ed' } out redy in redy close................. Windows PowerShell (C) (Microsoft Corporation), 2016. C:\winDbg>
windows10 not problem
It's not clear what you're asking?
@Tyriar Hi, problem solved, this problem only node-pty-prebuilt-multiarch
node-pty-prebuilt-multiarch
Win2016 - 10.0.14393 Hi,
this._inSocket
generate eventclose
on start 10 ms . Error event not handle.this._outSocket
stable work.if debug console powershell write i see data
node-pty
, write not workwindows10 not problem