help-gsasl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gsasl stops working in Fedora 16


From: Enrico Scholz
Subject: Re: gsasl stops working in Fedora 16
Date: Sat, 12 Nov 2011 13:51:30 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

Enrico Scholz <address@hidden> writes:

> after upgrading to fedora 16 I noticed that the gsasl tool (which is
> used to connect to an IMAP server) does not work as expected anymore.
> When receiving a multiline message, it does not flush the last line.

Problem seems to be in the polling code; there is done

| // authentication
| ...
|    gnutls_record_recv(session)
| 
| // application data xfer
| 
|    poll(<session-fd>,...)
|    gnutls_record_recv(session)

The gnutls_record_recv() in the authentication step received more data than
expected (dovecot sends two response lines after login ('* CAPABILITY...'
and the '. OK logged in' one)). The IMAP authentication code expects only
one line and data of the second one stays in the private buffers of the TLS
session.

As this data is in the private buffers only, the following poll() won't
return and program will stop until it sees data from stdin.


Previous fedora versions had probably a gnutls or glibc version which
have smaller buffers so that this code worked.


I will provide a patch soon...



Enrico



reply via email to

[Prev in Thread] Current Thread [Next in Thread]