Re: Re: Client timeout - renegotiation failed - connection dead
"Peter T. Breuer" <[email protected]> Sat, 4 Mar 2006 13:12:05 +0100 (MET)
| Newsgroups | gmane.linux.enbd.general |
|---|---|
| Message-ID | <[email protected]> |
"Also sprach scunacc:"
> Dear Peter,
>
> > > It's probably a real time skew - ntpd catching up with reality at some
> > > point close after boot.
> >
> > Since a couple of people are having time problems, I took the opportunity
> > to replace the calls to gettimeofday in time.c with calls to the
> > "secret" uptime function in libproc, if available (you need libproc-dev,
> > or point a libproc.so link from /usr/lib at your libproc.so.x.y.z in
> > /lib). That should use real time since boot instead of system time's
> > changing idea of UTC.
>
> Ah OK. Sounds like an interesting fix...
Well, I've had to make it more sophisticated, since every so often the
procps library gets
bad data in /proc/uptime
so I still have to fall back to system time, dynamically, and thus
might be vulnerable to system time changes.
> Did you make the kinds of changes we had with the code as well? Or will
> I have to do those again? Just curious.
I think I did. I just flushed what was on my machine to the server.
It's a develpment snapshot!
> I hope to go back to enbd too, but interestingly, nbd worked, and has
> been working without failure overnight.
I don't think it checks times at all (it's vulnerable to getting stuck
forever).
Peter