buglwIP - A Lightweight TCP/IP stack - Bugs: bug #44490, conn->op_completed which signal...

 
 

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

bug #44490: conn->op_completed which signal by do_recv() may be taken by netconn_write_partly() or lost

Submitted by:  wangyu <honghongbuqi>
Submitted on:  Mon 09 Mar 2015 05:58:40 AM UTC  
 
Category: TCPSeverity: 3 - Normal
Item Group: Feature RequestStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned Release: None
lwIP version: 1.4.1

Mon 09 Mar 2015 06:51:20 AM UTC, comment #1:

> NOW, Receive and transmit at the same time
> [..]
> Why not two signals, one for transmit and one for receive???


Because simultaneous transmit and receive in two different threads is not supported.

Simon Goldschmidt <goldsimon>
Project Administrator
Mon 09 Mar 2015 05:58:40 AM UTC, original submission:

hi:
I'm sorry to disturb you. there is Some things I am not quite understand.
Every time a new connection established, the netconn_alloc() must Creating a signal. (sys_sem_new(&conn->op_completed, 0)). the conn->op_completed while be signal by do_recv() or do_writemore(), and be taken by netconn_write_partly() or netconn_recved().
NOW, Receive and transmit at the same time, do_recv() signal the conn->op_completed and do_writemore() signal the conn->op_completed too. following, the netconn_write_partly() take signal conn->op_completed, but the netconn_recved() take signal is not successed.

Why not two signals, one for transmit and one for receive???

wangyu <honghongbuqi>

 

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 goldsimon (Posted a comment)
  • -unavailable- added by honghongbuqi (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
    Mon 09 Mar 2015 06:51:20 AM UTCgoldsimonStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1