F-Stack / f-stack

F-Stack is an user space network development kit with high performance based on DPDK, FreeBSD TCP/IP stack and coroutine API.
http://www.f-stack.org
Other
3.82k stars 891 forks source link

Memory leak issue #679

Closed peanutgyz closed 2 years ago

peanutgyz commented 2 years ago
 while(1) {
        sockfd = ff_socket(AF_INET, SOCK_DGRAM, 0);
        if (sockfd < 0) {
            printf("ff_socket failed, sockfd:%d, errno:%d, %s\n", sockfd, errno, strerror(errno));
            printf("Done %u\n", i);
            exit(1);
        }
        ff_close(sockfd);
        i++;
    }

If will return No buffer space available, use the latest code

Can some help to check this

jfb8856606 commented 2 years ago

I will debug this issue later.

May run out of memory whhile run APP for some time.