From 31703c15769f41085a53310efb776d6a5165d3c7 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 22 Feb 2003 21:01:06 +0000 Subject: Handle situations better in which a ping receives when the key already is expired --- Echolot/Storage/File.pm | 6 +++--- NEWS | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Echolot/Storage/File.pm b/Echolot/Storage/File.pm index dff840e..e2ac834 100644 --- a/Echolot/Storage/File.pm +++ b/Echolot/Storage/File.pm @@ -1,7 +1,7 @@ package Echolot::Storage::File; # (c) 2002 Peter Palfrader -# $Id: File.pm,v 1.56 2003/02/21 05:52:05 weasel Exp $ +# $Id: File.pm,v 1.57 2003/02/22 21:01:06 weasel Exp $ # =pod @@ -490,8 +490,8 @@ sub get_pings($$$$$) { my @pings; my $fh = $self->get_ping_fh($remailer_addr, $type, $key, $direction) or - Echolot::Log::warn ("$remailer_addr; type=$type; key=$key has no assigned filehandle for $direction pings."), - return undef; + Echolot::Log::info ("$remailer_addr; type=$type; key=$key has no assigned filehandle for $direction pings (key has expired)."), + return (); seek($fh, 0, SEEK_SET) or Echolot::Log::warn("Cannot seek to start of $remailer_addr type $type key $key direction $direction pings: $!."), diff --git a/NEWS b/NEWS index 03513a7..d7c28ed 100644 --- a/NEWS +++ b/NEWS @@ -30,6 +30,8 @@ Changes in version * Print status summary to log daily. - Also adds the new "summary" command. * Reliable and CRLF - a neverending (sad) story. + * Handle situations better in which a ping receives when the + key already is expired. Changes in version 2.0.10 - 2003-02-03 * Return undef rather than 0 if we cannot open a Maildir. -- cgit v1.2.3