[En-Nut-Discussion] NutTcpConnect() with timeout
Ole Reinhardt
ole.reinhardt at embedded-it.de
Thu Sep 26 11:03:19 CEST 2013
Hi Henrik,
> I support this feature and actually already made an unpublished patch to
> NutTcpStateActiveOpenEvent to use sock->so_read_to.
>
> So instead of:
>
> if(sock->so_state == TCPS_SYN_SENT)
> NutEventWait(&sock->so_ac_tq, 0);
>
> I have:
>
> if(sock->so_state == TCPS_SYN_SENT)
> {
> if (NutEventWait(&sock->so_ac_tq, sock->so_read_to))
> return -1;
> }
I had exactly the same idea.
@Harald: What do you think, would this be a reasonable change?
Bye,
Ole
--
kernel concepts GmbH Tel: +49-271-771091-14
Sieghuetter Hauptweg 48 Mob: +49-177-7420433
D-57072 Siegen
http://www.embedded-it.de
http://www.kernelconcepts.de
More information about the En-Nut-Discussion
mailing list