Package: xrdp
Version: 0.4.0~dfsg-3
Severity: wishlist

xrdp wakes up every 100000 usec. (10 times/s) if there is nothing to do.
This is annoying if you run xrdp in a virtual machine.

ltrace:
usleep(100000)                                                               = 
<void>
pthread_mutex_lock(0x805b1d0, 0xb7ea0a4c, 0xbf83fe48, 0x804b603, 0x805b1d0)  = 0
pthread_mutex_unlock(0x805b1d0, 0xb7ea0a4c, 0xbf83fe48, 0x804b632, 0x805b1d0) = 0
pthread_mutex_lock(0x805b1b0, 0xb7ea0a4c, 0xbf83fe48, 0x804b694, 0x805b1b0)  = 0
pthread_mutex_unlock(0x805b1b0, 0xb7ea0a4c, 0xbf83fe48, 0x804b6a7, 0x805b1b0) = 0
accept(3, 0xbf83fe34, 0xbf83fe44, 0, 0x805b008)                              = 
-1
__errno_location()                                                           = 
0xb7c7368c
usleep(100000)                                                               = 
<void>
pthread_mutex_lock(0x805b1d0, 0xb7ea0a4c, 0xbf83fe48, 0x804b603, 0x805b1d0)  = 0
pthread_mutex_unlock(0x805b1d0, 0xb7ea0a4c, 0xbf83fe48, 0x804b632, 0x805b1d0) = 0
pthread_mutex_lock(0x805b1b0, 0xb7ea0a4c, 0xbf83fe48, 0x804b694, 0x805b1b0)  = 0
pthread_mutex_unlock(0x805b1b0, 0xb7ea0a4c, 0xbf83fe48, 0x804b6a7, 0x805b1b0) = 0
accept(3, 0xbf83fe34, 0xbf83fe44, 0, 0x805b008)                              = 
-1
__errno_location()                                                           = 
0xb7c7368c


> lsof -p 7875|grep 3u
xrdp    7875 xrdp    3u  IPv4  16827             TCP *:3389 (LISTEN)


quick look at the code:
maybe at xrdp_listen.c:211:
      error = g_tcp_accept(self->sck);
      if ((error == -1) && g_tcp_last_error_would_block(self->sck))
      {
        g_sleep(100);
        g_loop();
      }

Greetings
Jens

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-2-mcore2-imq-raid (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages xrdp depends on:
ii  adduser                       3.105      add and remove users and groups
ii  libc6                         2.6.1-1+b1 GNU C Library: Shared libraries
ii  libpam0g                      0.99.7.1-5 Pluggable Authentication Modules l
ii  libssl0.9.8                   0.9.8e-9   SSL shared libraries

Versions of packages xrdp recommends:
ii  vnc4server [vnc-server]  4.1.1+X4.3.0-21 Virtual network computing server s

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to