> On Fri, 31 Aug 2007, Davide Libenzi wrote:
> > On Fri, 31 Aug 2007, Oliver St=F6neberg wrote:
> >
> > > > On Fri, 10 Aug 2007, Oliver St=3DF6neberg wrote:
> > > > > Hi,
> > > > >
> > > > > we recently started using the TLS features of the XMail and duri=
ng a
> > > > > tcpdump session, someone discovered an issue. After the communic=
ation
> > > > > is done and the communication should be closed the sending XMail=
will
> > > > > send a RST, instead of closing the connection properly. The mail=
is
> > > > > being send properly, but I have been told this behavior might ca=
use
> > > > > problems with some firewalls.
> > > > > We also tried it without TLS and the connection is properly clos=
ed.
> > > > >
> > > > > This happened with the final 1.24 on Linux and Windows between t=
wo
> > > > > XMails.
> > > > >
> > > > > I checked the code, but didn't see anything TLS specified that m=
ight
> > > > > causing this problem. Any help or idea is appreciated.
> > > >
> > > > Can you try to replace the:
> > > >
> > > > SSL_shutdown(pCtx->pSSL);
> > > >
> > > > at line 227 of SSLBind.cpp with:
> > > >
> > > > if (SSL_shutdown(pCtx->pSSL) =3D3D=3D3D 0)
> > > > SSL_shutdown(pCtx->pSSL);
> > > >
> > > > and let me know?
> > > >
> > > >
> > > >
> > > > - Davide
> > >
> > > I changed the line and the problem still occurs. I also read the
> > > documentation on that function and debugged that part of the XMail
> > > code on the sending side and the SSL_shutdown will always return 0. =
I
> > > even did a while loop with that argument and it never returned
> > > something else. Maybe there is something wrong on the side of the
> > > receiving server. After all this is a communication between two
> > > XMails.
> >
> > Can you try to remove the SSL_shutdown() altogheter?
>
> Also this:
>
> if (SSL_shutdown(pCtx->pSSL) =3D=3D 0) {
> shutdown(pCtx->SockFD, SHUT_WR);
> SSL_shutdown(pCtx->pSSL);
> }
This appears to work. I know get "1" as result of the second call. I
still need to check, if a RST is still occuring.
Also, this code only works on Linux. You have to use the define
SD_SEND on windows.
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]