[Spread-users] Bug in SP_connect_timeout?

John Lane Schultz jschultz at spreadconcepts.com
Wed Dec 14 20:40:26 EST 2016

Hi Jan,

I just wanted to let you know that I’m reimplementing the way we send/recv in the client library for the next release candidate so issues like the one you noticed shouldn’t happen any more.


John Lane Schultz
Spread Concepts LLC
Cell: 443 838 2200

On Dec 6, 2016, at 7:10 AM, Jan Moringen <jmoringe at techfak.uni-bielefeld.de> wrote:


I think I have found a small bug in SP_connect_timeout: after receiving
the length of the authentication method list, the following code is
executed to receive the list itself:

   ret = recv_nointr_timeout( s, auth_list, auth_list_len, 0, &time_out);

This works most of the time, but in my use-case, the authentication
method list was broken up into multiple frames, resulting in this call
receiving less than auth_list_len octets. Since ret is checked for
errors but not short reads, the connection attempt failed.

Kind regards,

Spread-users mailing list
Spread-users at lists.spread.org

More information about the Spread-users mailing list