Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

LWIP Client

Altera_Forum
Honored Contributor II
917 Views

Hi, 

 

I have a LWIP client. recv() is done is a separate task. When I want to close the socket from another task I get an error: 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

Assertion "OSQDel " failed at line 93 in /cygdrive/c 

/altera/kits/nios2_60/components/altera_lwip/UCOSII/src/downloads/lwip4ucosii/uc 

os-ii/sys_arch.c[/b] 

--- Quote End ---  

 

 

This probably because the recv mailbox cannot be deleted because the receive task is pending on it. 

Calling the recv() function only after a select() so the recv() does not block does not help, the mailbox cannot be deleted. 

 

How can I close a socket form a task while another task is receiving on it?
0 Kudos
0 Replies
Reply