- Workaround infinite loop on loopback connect.

svn path=/trunk/; revision=12043
This commit is contained in:
Filip Navara
2004-12-12 17:03:01 +00:00
parent 7660dbd930
commit 4bceb917d1
@@ -706,6 +706,17 @@ send:
&& !(rt->rt_rmx.rmx_locks & RTV_MTU)) {
((struct ip *)ti)->ip_off |= IP_DF;
}
#endif
/*
* XXX: It seems that osktittcp expect synchronous packet processing
* and so our current asynchronous way causes infinite loop. The
* ACK flags are normally masked out at the end of this function
* and the incomming packets are processed then, but since
* currently the loopback packet can be received during the
* ip_output call, the function end is never reached.
*/
#ifdef __REACTOS__
tp->t_flags &= ~(TF_ACKNOW|TF_DELACK);
#endif
error = ip_output(m, tp->t_inpcb->inp_options, &tp->t_inpcb->inp_route,
so->so_options & SO_DONTROUTE, 0);