Hello Nikos, > Does the attached patch also solve the problem? Yes, it does. It keeps `have_peeked_data' member set to zero, which effectively disables the function _gnutls_io_clear_peeked_data(), and that solves the problem. Regards, Sergey