Re: Bug in SP_connect_timeout?

John Lane Schultz <[email protected]> Thu, 8 Dec 2016 08:02:34 -0500
Newsgroups gmane.network.spread.user
Message-ID <[email protected]>
Jan,

Thank you for the report.  We will look into this.

Cheers!

-----
John Lane Schultz
Spread Concepts LLC
Cell: 443 838 2200

On Dec 6, 2016, at 7:10 AM, Jan Moringen <[email protected]> wrote:

Hi,

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,
Jan

_______________________________________________
Spread-users mailing list
[email protected]
http://lists.spread.org/mailman/listinfo/spread-users