buglwIP - A Lightweight TCP/IP stack - Bugs: bug #3112, Multiple listen on same socket ...

 
 

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

bug #3112: Multiple listen on same socket creates and registers PCB multiple times in tcp_listen_pcbs

Submitted by:  Donald Vlahovic <duck71>
Submitted on:  Fri 04 Apr 2003 12:42:35 PM UTC  
 
Category: TCPSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: Leon Woestenberg <likewise>
Open/Closed: ClosedPlanned Release: None
lwIP version: None

Sun 06 Apr 2003 08:36:22 PM UTC, comment #1:

new revision: 1.23; previous revision: 1.22

Leon Woestenberg <likewise>
Project MemberIn charge of this item.
Fri 04 Apr 2003 12:42:35 PM UTC, original submission:

If you do listen on same socket multiple times every listen command creates another struct tcp_pcb_listen and registers this struct in tcp_listen_pcbs list.

To fix this query PCB state and if state is LISTEN return passed PCB.

struct tcp_pcb *
tcp_listen(struct tcp_pcb *pcb)
{
struct tcp_pcb_listen *lpcb;

/* Bugfix: No second listen on same socket */
if(pcb->state == LISTEN)
return pcb;
...

Donald Vlahovic <duck71>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 06 Apr 2003 08:36:22 PM UTClikewiseAssigned toNone=>NA
  Open/ClosedOpen=>(Error - Not Found)
Sun 06 Apr 2003 08:36:21 PM UTClikewiseStatusNone=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1