2010/8/17 Duzenbury, Rich <rduzenb...@biltd.com>:
>
> I've attached a horrible, hacky patch that seems to barely get the job done.  
> I am just falling back on trying the connect routine multiple times, which 
> seems to work.
>

Don't worry, I have also done, let's say, not elegant hacks :)
Moreover because I am a C newbe..

> I hacked in some instrumentation and from what I can tell, the Xvnc server I 
> am running has security level set to 2, and so in vnc.c, around line 896, it 
> sometimes doesn't receive 4 bytes of data it is looking for during the first 
> connect attempt.  The server is Xvnc version XF4VNC-4.4.0.0 apparently from 
> http://xf4vnc.sf.net and the server is SLES 10.3.
>
>  if (error == 0 && check_sec_result)
>  {
>    /* sec result */
>    init_stream(s, 8192);
>    error = lib_recv(v, s->data, 4);  // <---- I think it fails right here, 
> but why only the 1st time?  s->data is blank or perhaps a newline.

mhmm I see... I never analyzed such part of code.. I will have a look

> --- xrdp.orig/vnc/vnc.c 2010-08-17 10:44:31.000000000 -0500
> +++ xrdp/vnc/vnc.c      2010-08-17 13:58:08.000000000 -0500
> @@ -1188,13 +1188,25 @@

Not bad to try multiple times, the best would be to investigate why
you should to...

>
> Thank you.
>
> Regards,
> Rich

Thank you too! I will have a look to your hack in order to understand
why you have to try multiple times...

Cheers,
Nicola

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
xrdp-devel mailing list
xrdp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xrdp-devel

Reply via email to