Re: Patch to work around flaky pop3 server behaviour
- From: Carlos Morgado <chbm chbm nu>
- To: balsa-list gnome org
- Subject: Re: Patch to work around flaky pop3 server behaviour
- Date: Sat, 9 Jun 2001 12:06:49 +0100
On Sat, Jun 09, 2001 at 12:20:02PM +0200, Pawel Salek wrote:
>
> On 2001.06.09 00:42 Thomas Fitzsimmons wrote:
> > This patch makes pop3 mail retrieval more robust.
> >
> > It uses a non-blocking read function when retrieving characters from the
> > server, so that the mail retrieval thread doesn't hang when the server
> > fails to send an expected response.
>
> This patch looks, hm, strange, to me. In particular, i is a local variable,
> and there is no loop to iterate over retry attepmts (the other option is
> that I am blind, or very, very tired).
>
> I would rather commit another, attached patch. It is simpler and really
> works. The potential disadvantage is that it uses POSIX signals (OTOH, it
> implements commonly used technique so it should be OK).
>
> Comments?
i like select/poll with timeouts better than signals and much better than
fnctl tricks
--
Carlos Morgado - chbm(at)chbm(dot)nu - http://chbm.nu/ -- gpgkey: 0x1FC57F0A
http://wwwkeys.pgp.net/ FP:0A27 35D3 C448 3641 0573 6876 2A37 4BB2 1FC5 7F0A
RSA in 3 lines of PERL :
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=cho 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc;s/\W//g;$_=pack('H*',/((..)*)$/)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]