• AVR Freaks

Hot!Closing Socket does not free resources.

Author
arpatel
Starting Member
  • Total Posts : 65
  • Reward points : 0
  • Joined: 2019/01/09 23:24:14
  • Location: 0
  • Status: offline
2019/07/31 22:54:10 (permalink)
0

Closing Socket does not free resources.

Hi
I have implemented a HTTP_NET server and berkely API for other connection.
When update network configuration berkely TCP socket stops responding.
I am getting error 105 which is "#define    ENOBUFS        105        /* No buffer space available */".
And http server is not responding as well.
 
I think closing socket does not free resources and it reaches MAX SOCKET limit.
I am already closing socket before attempting to open new one after stack restart again.
 
I have set TCP Socket = 10, UDP socket = 10, Net_PRES = 10, BSD = 10, htttp = 4 connection  and DHCP,ICMP,ARP and Announce module.
Stack Heap = 49490
Total Heap = 51200
 
Please advice me is there any known bug or I am missing something in my code.
Is there anything extra needed to close the socket for tcp server?
 
Thanks
 MCU: pic32MZ
Harmony 2.04
post edited by arpatel - 2019/08/01 00:22:19
#1

0 Replies Related Threads

    Jump to:
    © 2019 APG vNext Commercial Version 4.5