warriordog / MPH-Client

A client program for Mining Pool Hub
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Miners with buffered stdout take hours to spit out logs on Windows #22

Closed warriordog closed 6 years ago

warriordog commented 6 years ago

Some miners cough xmr-stak cough have a HUGE stdout buffer and can take hours to actually build up enough output to trigger a flush. This does not happen with PTYs, so *nix systems are unaffected.

warriordog commented 6 years ago

xmr-stak is fixed, but EWBF has this problem and does not have a flag to flush output.

warriordog commented 6 years ago

Possible solution here: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_redirection?view=powershell-5.1

EDIT: if this solution is implemented, then the miner config needs to be updated to have a "run mode" setting. For now options could be "PTY", "STDIO", and "TEE". PTY and STDIO would work as they currently do, and TEE would open a new window and then capture output from that.

warriordog commented 6 years ago

This is fixed as much as possible, any other solution would be a wrapper that would just be part of the run command