Hi, Florin Coras
I found out that because I run the next program right next to the last one, the
VCL didn't clear the last connection, so I get stuck in the socket function.
Thanks a lot.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#21291): htt
Hi,
I’m guessing you’re asking how to run LDP from gdb. For that either create a
gdb script file and: gdb -x cmd.gdb --args ./epollandsocket, or run the
commands after starting gdb.
The minimal set of commands to start:
set exec-wrapper env
‘LD_PRELOAD=/vpp/build-root/build-vpp-native/vpp/l
Thanks, I'm using LDP. When I use gdb to debug, it comes out with output as
follows.
I guess LDP recovers some libraries that gdb needs. When I switch to normal
env, gdb runs correctly. How can I solve this, thanks. Correct output as
follows.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messa
Hi,
Are you trying to run the test app through LDP? If yes, sharing one epoll fd
between two threads might be the source of the issues, although hard to say
what could go wrong.
With respect to your app, could you run it from gdb and check where it’s stuck?
Regards,
Florin
> On Apr 25, 202
Hi All ,
I'm trying to use nonblock socket with epoll.
I wonder why I sometimes get stuck in socket function when I use VCL .
Code as following:
printf ("before socket\n");
if ((c_fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
perror("create socket fail.\n");
exit(0);
}
printf ("after socket\n");
Th