[gnutls-help] Chrome and GNUTLS_E_PREMATURE_TERMINATION

Nikos Mavrogiannopoulos nmav at gnutls.org
Wed Oct 2 00:28:55 CEST 2013


On 10/01/2013 05:41 PM, MK wrote:
> I have an HTTP server under development using gnuTLS, and notice a
> strange issue when testing with Chrome specifically -- the first
> gnutls_record_recv() on a new connection will frequently fail with
> GNUTLS_E_PREMATURE_TERMINATION.

Hello,
 That means that the other party terminated the connection.

> Chrome retries until it gets what it is looking for, so this is not
> noticeable to the user, but it means there are extra wasted
> connections made, as opposed to firefox which does not do this.
> Has anyone else experienced this?

You may see what chrome is looking for by checking the connections using
wireshark. I suspect that chrome is trying to determine the highest TLS
version number supported by the server.

regards,
Nikos




More information about the Gnutls-help mailing list