Hi Andrea:
Here's the output:
[EMAIL PROTECTED] ~]# perl -e 'print length(pack("LL")), "\n";'
8
[EMAIL PROTECTED] ~]# perl -e 'print length(pack("L")), "\n";'
4
Cheers,
Bernard
> -----Original Message-----
> From: Andrea Righi [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 09, 2006 9:05
> To: Bernard Li
> Cc: [email protected]
> Subject: Re: [systemimager-commits] r3547 - trunk/sbin
>
> Bernard Li wrote:
> > Hi Andrea:
> >
> >> Try a `telnet <client> 8181` on your image server, the output
> >> should be
> >> the same shown in the virtual console... if it doesn't
> work there's a
> >> network problem or a bug in the client's
> autoinstallscript. Otherwise
> >> the problem is in si_monitortk code...
> >
> > I can telnet to that host fine from the imageserver.
> >
> > It seems that it is failing with the following error message:
> >
> > error: cannot set SO_SNDTIMEO option to socket
> >
> > Perhaps there is a difference between x86 and x86_64?
> Potentially it
> > might be different for ia64 as well?
> >
> > Cheers,
> >
> > Bernard
> >
>
> very strange... this is the option to set the timeout of 10sec for the
> connection to the client. It is done by the setsockopt syscall.
>
> The piece of code is the following:
>
> eval {
> # Set a timeout on the socket.
> setsockopt(SOCK, SOL_SOCKET, SO_SNDTIMEO, pack('LL',
> 10, 0)) or
> die "error: cannot set SO_SNDTIMEO option to socket\n";
> setsockopt(SOCK, SOL_SOCKET, SO_RCVTIMEO, pack('LL',
> 10, 0)) or
> die "error: cannot set SO_RCVTIMEO option to socket\n";
> # Connection to the client.
> connect(SOCK, sockaddr_in(8181, inet_aton($ip))) or
> die "error: connection failed\n";
> };
>
> The first strange thing is that since it is in an "eval" construct the
> execution should proceed, simply using socket without timeout, but
> proceed... the second strange thing is why the option is not
> set. Maybe
> LL (long long) is assembled in a different way in x86_64, but
> AFAIK 'L'
> should be _exactly_ 32-bit in _all_ architectures. To check it can you
> try to run:
>
> perl -e 'print length(pack("LL")), "\n";'
>
> The right result should be 8.
>
> Cheers,
> Andrea
>
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Sisuite-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-devel