[X2Go-User] 25 user logon problem

Mike Gabriel mike.gabriel at das-netzwerkteam.de
Sat Mar 23 16:54:58 CET 2013


Hi Thomas,

On Sa 23 Mär 2013 16:28:28 CET Thomas Hanschke wrote:

> Hello everyone;
>
> I have set up a x2go terminal-server on ubuntu 12.04 in our school.
> There are 25 thinclients (wyse with windows7 embedded) in a classroom.
> The thinclients start with an openbox-session. So far it works fine, but
> there is a little problem:
>
> If more than 2 or 3 clients log on at exactly the same time, some of
> them stop at the black screen before the gray X2Go Logo appears.
> There is no error message. With a little timeshift of 2 or 3 seconds
> between the logons, there are no problems.
>
> Can anyone get a little help to solve this?

You experience a race condition where the server tries to allocate a  
display port per session and if two users log in very simulataneously,  
the second user won't get a valid display.

I am not sure if this can be avoided really reliably. However, instead  
of incrementing the X2GO_PORT by 1 in x2gostartagent (in case the  
probed port is not usable anymore) we could increment the X2GO_PORT by  
some random value (between 1 and 30). Then it could still be that two  
clients try to get the same DISPLAY port (in case two random calls  
deliver the same value), but the failing logins should reduce by far.

I Cc: our -dev list for further comment.

Mike



-- 

DAS-NETZWERKTEAM
mike gabriel, rothenstein 5, 24214 neudorf-bornstein
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.x2go.org/pipermail/x2go-user/attachments/20130323/ff65f05e/attachment.pgp>


More information about the x2go-user mailing list