[bug #15926] netconn API bugs

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[bug #15926] netconn API bugs

Wilfred

Follow-up Comment #1, bug #15926 (project lwip):

i did a hack for the first two things in the list..

i just take a semaphore in netconn_close() and wait till sent_tcp() is called
with tcp->unacked == NULL or err_tcp() is called, which releases the
semaphore

in the socket layer i added a call to netconn_close() before calling
netconn_delete()

sorry i dont know much about the diff stuff and how to make a nice looking
and behaving patch. maybe someone can help me to know about this. i know the
diff command but i dont know how to do it the right way.

i also removed the "if(state == LISTEN)" normaly the tcp layer should know in
which state it has to what when close is called, or am i wrong!?



Kind regard

Andreas

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=15926>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/



_______________________________________________
lwip-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

[bug #15926] netconn API bugs

Wilfred

Follow-up Comment #2, bug #15926 (project lwip):

andreas, can you post the whole api_lib.c in here?

thanks.


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=15926>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/



_______________________________________________
lwip-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

[bug #15926] netconn API bugs

Wilfred

Update of bug #15926 (project lwip):

             Assigned to:                    None => christiaans            

    _______________________________________________________

Follow-up Comment #3:

On a rainy holiday moment, i think i tackled it
in api_msg.c, in do_close(),
case NETCONN_TCP, add after if {}

else if (msg->conn->pcb.tcp->state == CLOSE_WAIT) {
  err = tcp_output(msg->conn->pcb.tcp);
}

I'll commit this when I'm back.
This doesn't fix the mailbox cludge though.

Bye, Christiaan.  

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=15926>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/



_______________________________________________
lwip-devel mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/lwip-devel