mviereck / runx

Provide X server on MS Windows with cookie authentication.
MIT License
87 stars 14 forks source link

Smaller improvements - speedup #9

Closed Cyber1000 closed 1 year ago

Cyber1000 commented 1 year ago
  1. I had an entry in Lxss without Basepath leading to a null-exception:

    image
  2. check_displayport sometimes ran into an timeout, not opening anything (especially together with x11docker on wsl2) I think waiting 1s is enough

  3. My Cygwin-X has an XWin.exe - in WSL I can just add the folder to the path and don't need to rely on /cygwin64/bin/XWin.exe path.

mviereck commented 1 year ago

Thank you! Sorry for my delay in responding.

RolandRosier commented 1 year ago

@Cyber1000 and @mviereck,

This is a well identified speedup with the timeout in the checking for the port.

I had also wondered if it would be possible to remove the timeout entirely by calling the windows "netstat.exe -na" and grepping for the appropriate TCP listening port - if the port isn't listening, it can't be connected to - and there isn't any timeout involved at all?