Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

LWIP Client

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?
No RepliesBe the first to reply