develooper Front page | perl.qpsmtpd | Postings from September 2007

Re: more reset_connection() and uninitialized values

Thread Previous | Thread Next
From:
Hanno Hecker
Date:
September 30, 2007 10:51
Subject:
Re: more reset_connection() and uninitialized values
Message ID:
20070930195151.4e808af8.hah@uu-x.de
On Sun, 30 Sep 2007 11:49:16 -0400
John Peacock <jpeacock@rowman.com> wrote:

> Hanno Hecker wrote:

> >    # reset transaction if we queued the mail
> > +  $self->reset_connection;
> >    $self->reset_transaction;

> Except if it is written properly, reset_connection should in fact drop the
> transaction object as well, so the order you chose should be a noop.  I would do
> that the other way round: connections contain transactions, so unroll them in
> reverse.
It's not... if I reverse the order I get this with
$ ./qpsmtpd-prefork --children 1 --user $USER --port 2525

...and on the second connection:
$ telnet hex 2525
Trying 10.7.7.2...
Connected to hex.city.ankh-morp.org.
Escape character is '^]'.
220 hex ESMTP qpsmtpd 0.42rc1 ready; send us your mail, but not your spam. 
ehlo hex
503 but you already said HELO ...

Mhh, seems like it does it always like this, no matter which order... 

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About