buglwIP - A Lightweight TCP/IP stack - Bugs: bug #21307, tcp connect problem

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #21307: tcp connect problem

Submitted by:  Cui hengbin <phant>
Submitted on:  Wed 10 Oct 2007 02:40:27 AM UTC  
 
Category: TCPSeverity: 3 - Normal
Item Group: Change RequestStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned Release: None
lwIP version: None

Wed 31 Oct 2007 08:09:46 AM UTC, comment #3:

I think the code is correct,
after calling function " tcp_ack(pcb);", when to send ACK, it is depend on the timer, the ACK will be sent when the timer is up ( in function tcp_slowtmr(void)).

so i think you should check your timer first.

dupengbo <dupengbo>
Tue 23 Oct 2007 09:23:35 AM UTC, comment #2:

1.Can you please stop at 'tcp_ack(pcb)' (in tcp_process() right after
TCP_EVENT_CONNECTED(); I think that's the call you wanted to change to
tcp_ack_now()) and write down the pcb->flags at that time (and post them here)
to see why it doesn't send an ACK?

I test it ,the result is :pcb->flags = 0;(I use today's CVS head;)

Cui hengbin <phant>
Sun 21 Oct 2007 05:46:32 PM UTC, comment #1:

I tested this (since I couldn't remember how this worked): I see SYN + SYN-ACK when entering the pcb->connected function and ACK sent after the connected function is left. So for me, it works fine.

Can you please stop at 'tcp_ack(pcb)' (in tcp_process() right after TCP_EVENT_CONNECTED(); I think that's the call you wanted to change to tcp_ack_now()) and write down the pcb->flags at that time (and post them here) to see why it doesn't send an ACK?

As I said, for me it works fine. Also, I don't think there have been any changes in that region for some years...

Simon Goldschmidt <goldsimon>
Project Administrator
Wed 10 Oct 2007 02:40:27 AM UTC, original submission:

Hi all:
I use the new version from cvs.but find when use tcp connect,only two handshake,SYN->SYN+ACK,not send ACK,I change the tcp_process function as follow:

tcp_process(struct tcp_pcb *pcb)
{
...

switch (pcb->state)
{
case SYN_SENT:
...
tcp_ack(pcb);
...
break;
case SYN_RCD:
...

}

I change "tcp_ack(pcb)" to "tcp_ack_now(pcb)",it can generate three handshake,do you agree?
}

Cui hengbin <phant>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by kieranm (Updated the item)
  • -unavailable- added by dupengbo (Posted a comment)
  • -unavailable- added by goldsimon (Posted a comment)
  • -unavailable- added by phant (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 01 Nov 2007 12:34:44 PM UTCkieranmStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1