i have a gnutls server and clients. they both run in their own vm's so i'm emulating a situation where both run on different machines my problem is the following:
1) server and client establish connection
while the client is sending something to the server via gnutls_record_send, the server process is killed (kill -9 pid) no signal handler is installed here the server process is killed and the call to gnutls_record_send on the client side fails -> this is the desired behaviour
but now:
2)
server and client establish connection
while the client is sending something to the server via gnutls_record_send, the server vm is reset (like the "real" machine was unplugged)
the client process hangs in gnutls_record_send and doesnt come back!
what i want here is of course the the client return from gnutls_record_send!