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

Submitter:  Cui hengbin <phant>
Submitted:  Wed 10 Oct 2007 02:40:27 AM UTC
   
 
Category:  TCP Severity:  3 - Normal
Item Group:  Change Request Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Planned 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>
Group 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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-11-01 kieranm StatusNone Invalid
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code