Tim Ruehsen <tim.rueh...@gmx.de> writes: > wgnutls_write is called without timeout. So, what can we do here ? > > But maybe we don't have to check for GNUTLS_E_REHANDSHAKE at this point at > all. Regarding > http://www.gnutls.org/manual/html_node/Re_002dauthentication.html, only > gnutls_record_recv() returns GNUTLS_E_REHANDSHAKE. > > If you don't mind, I'll remove the rehandshake code from wgnutls_write().
yes, if it cannot return that error code, please drop the code that checks for it. Regards, Giuseppe