{"action":"created","issue":{"url":"https://api.github.com/repos/ArcticaProject/nx-libs/issues/824","repository_url":"https://api.github.com/repos/ArcticaProject/nx-libs","labels_url":"https://api.github.com/repos/ArcticaProject/nx-libs/issues/824/labels{/name}","comments_url":"https://api.github.com/repos/ArcticaProject/nx-libs/issues/824/comments","events_url":"https://api.github.com/repos/ArcticaProject/nx-libs/issues/824/events","html_url":"https://github.com/ArcticaProject/nx-libs/issues/824","id":465885325,"node_id":"MDU6SXNzdWU0NjU4ODUzMjU=","number":824,"title":"very slow startup of nxproxy/nxagent","user":{"login":"realsimix","id":31847983,"node_id":"MDQ6VXNlcjMxODQ3OTgz","avatar_url":"https://avatars3.githubusercontent.com/u/31847983?v=4","gravatar_id":"","url":"https://api.github.com/users/realsimix","html_url":"https://github.com/realsimix","followers_url":"https://api.github.com/users/realsimix/followers","following_url":"https://api.github.com/users/realsimix/following{/other_user}","gists_url":"https://api.github.com/users/realsimix/gists{/gist_id}","starred_url":"https://api.github.com/users/realsimix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/realsimix/subscriptions","organizations_url":"https://api.github.com/users/realsimix/orgs","repos_url":"https://api.github.com/users/realsimix/repos","events_url":"https://api.github.com/users/realsimix/events{/privacy}","received_events_url":"https://api.github.com/users/realsimix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-07-09T16:48:57Z","updated_at":"2019-07-10T08:55:20Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I see very strange slow startup of nxproxy/nxagent on certain networks.\r\nNxproxy seems to connect to nxagent but then it takes very long to start the session and the desktop to appear. I don't remember exactly how long it takes but it's a minute or so. Once the session is established, it works very well without any issues.\r\n\r\nMy question is, does anyone see the same issue or have an idea why it happens?\r\n\r\nFirst I thought it could be a DNS issue but I couldn't find anything. Or could it be an IPv6 issue somehow because of dual stack?\r\n\r\nAny help is much appreciated.\r\n\r\nRegards,\r\nSimon"},"comment":{"url":"https://api.github.com/repos/ArcticaProject/nx-libs/issues/comments/509974311","html_url":"https://github.com/ArcticaProject/nx-libs/issues/824#issuecomment-509974311","issue_url":"https://api.github.com/repos/ArcticaProject/nx-libs/issues/824","id":509974311,"node_id":"MDEyOklzc3VlQ29tbWVudDUwOTk3NDMxMQ==","user":{"login":"uli42","id":6320356,"node_id":"MDQ6VXNlcjYzMjAzNTY=","avatar_url":"https://avatars3.githubusercontent.com/u/6320356?v=4","gravatar_id":"","url":"https://api.github.com/users/uli42","html_url":"https://github.com/uli42","followers_url":"https://api.github.com/users/uli42/followers","following_url":"https://api.github.com/users/uli42/following{/other_user}","gists_url":"https://api.github.com/users/uli42/gists{/gist_id}","starred_url":"https://api.github.com/users/uli42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uli42/subscriptions","organizations_url":"https://api.github.com/users/uli42/orgs","repos_url":"https://api.github.com/users/uli42/repos","events_url":"https://api.github.com/users/uli42/events{/privacy}","received_events_url":"https://api.github.com/users/uli42/received_events","type":"User","site_admin":false},"created_at":"2019-07-10T08:55:20Z","updated_at":"2019-07-10T08:55:20Z","author_association":"MEMBER","body":"On Wed, Jul 10, 2019 at 10:51 AM Ulrich Sibiller <uli42@gmx.de> wrote:\n>\n> On Wed, Jul 10, 2019 at 10:41 AM Simon Matter <notifications@github.com> wrote:\n> >\n> > There are two things that come to mind:\n> >\n> > in the past years we added some more communication with the real X server that will take place during startup (namely xinerama and keyboard related). For a slow connection this might increase the startup and/or reconnect time\n> > nxproxy and nxagent must agree on the state of their respective caches. If the cache directories (in .nx or .x2go) are large or on a slow harddisk this might affect the startup. I know you are familiar with coding so maybe you can just compile a version with debugging enabled in nxcomp and nxagent's Init.c (and maybe more) and watch where it takes long. I have not seen such extreme times but 10-20s is not unheard of...\n> >\n> > As for 1) it's not related to code version. I understand that newer versions may take a bit more time but that's not the issue here. I've tested with latest Git as well as ancient NoMachine code. Both behave almost the same.\n> >\n> > For 2) it's also not the problem here. I just took my laptop from the other network to my home network and all is well again. Latency to the server is low here in home network (~9ms) while the other network was 9000km away with latency of 200-300ms. That said, the problem is new and didn't show up some weeks ago.\n>\n> So just to get this right: this problem is latency related?\n>\n> Have you tried if there's a difference between a rootless session\n> (nxagent -R) and a desktop session (nxagent -D)?\n> Have you tried if it depends on the desktop environment?\n>\n> > I just can't figure out what change has lead to the issue.\n>\n> You might try bisecting the code. But I doubt it is a code issue as it\n> is working in your home network.\n>\n> Update: please test if changing the connection type helps (adsl vs lan vs wan).\n\nOne more idea: could this be related to fonts? You could enable DEBUG\nin Fonts.c and check the output.\n\nI have reworked the font handling some months ago.\n\nUli\n"}}
{"actor":{"display_login":"uli42"}}