Date: | Fri, 2 Aug 2002 00:34:35 -0400 |
From: | Matt Selsky <selsky [...] columbia.edu> |
To: | Graham Barr <gbarr [...] pobox.com> |
Subject: | Re: Net::Time bug? |
Sorry it took me so long. I finally figured out the problem here, at
least for tcp. The return value from recv was checked incorrectly when
'-w' and 'use strict' were in use.
The attached patch fixes it for tcp.
I'll keep looking at udp (I'm having a problem where
inet_daytime/inet_time don't return until the $TIMEOUT has elapsed.
On Wed, Apr 17, 2002 at 04:26:48PM +0100, Graham Barr wrote:
Show quoted text
> I have no idea. All I can suggest is to put a log of debug print statements into
> Time.pm an see what it is doing.
>
> Graham.
>
> On Wed, Apr 17, 2002 at 10:15:43AM -0400, Matt Selsky wrote:
> > I removed that line and the code still works. Any ideas why
> > Net::Time doesn't seem to work?
> >
> > > Try it withour the print $s "\n"; On a TCP connection the connect should
> > > be sufficient for the remote server to respond, you should not have to send
> > > anything.
Message body is not shown because sender requested not to inline it.