help-gnutls
[Top][All Lists]
Advanced

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

Re: Received corrupted data(-54). Closing the connection.


From: Nikos Mavrogiannopoulos
Subject: Re: Received corrupted data(-54). Closing the connection.
Date: Fri, 02 Mar 2012 22:26:56 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16

On 03/02/2012 10:09 PM, Peter Penzov wrote:

> Hi,
>   I'm working on a example with GnuTLS - ex-serv-x509.c. I made a loop
> insight the client which makes a connection with the server and sends 200
> times simple string. The interesting part in when I type Ctrl+C and I kill
> the client I get this error on the server?
> 
> address@hidden test]# ./server
> Server ready. Listening to port '5556'.
> 
> - connection from 127.0.0.1, port 41441
> - Handshake was completed
> *** Received corrupted data(-54). Closing the connection.
> Why the server crashes when I kill the client?


This is not a crash. This is an error from your server.
In your case gnutls propagated an error from recv() to
your server. Whether to accept more connections or exit
is up to your application.

In TLS it is recommended to terminate the sessions on
the TLS layer as in:
http://www.gnu.org/software/gnutls/manual/html_node/Data-transfer-and-termination.html#Data-transfer-and-termination

regards,
Nikos



reply via email to

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