Switch naive to debug and try to track the free error
This commit is contained in:
parent
9d1a454463
commit
cd4769e30b
3 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@ mkdir -p ./log
|
||||||
tor -f /etc/torrc > ./log/client-tor-stdout.log 2> ./log/client-tor-stderr.log &
|
tor -f /etc/torrc > ./log/client-tor-stdout.log 2> ./log/client-tor-stderr.log &
|
||||||
sleep 2
|
sleep 2
|
||||||
mkdir -p ./shared
|
mkdir -p ./shared
|
||||||
donar -a naive -c -o ./shared/onion_services.pub -r 9000 > ./log/client-donar-stdout.log 2> ./log/client-donar-stderr.log &
|
donar -a naive -c -o ./shared/onion_services.pub -v -r 9000 > ./log/client-donar-stdout.log 2> ./log/client-donar-stderr.log &
|
||||||
sleep 2
|
sleep 2
|
||||||
measlat -h 127.13.3.7 -p 9000 > /dev/null 2>&1 # Used to wait for connections
|
measlat -h 127.13.3.7 -p 9000 > /dev/null 2>&1 # Used to wait for connections
|
||||||
measlat -h 127.13.3.7 -p 9000 -c $1 -i $2 -s $3 > ./res/naive.csv 2> ./log/client-measlat-stderr.log
|
measlat -h 127.13.3.7 -p 9000 -c $1 -i $2 -s $3 > ./res/naive.csv 2> ./log/client-measlat-stderr.log
|
||||||
|
|
|
@ -5,5 +5,5 @@ sleep 2
|
||||||
mkdir -p ./shared
|
mkdir -p ./shared
|
||||||
cd ./shared
|
cd ./shared
|
||||||
pwd
|
pwd
|
||||||
donar -a naive -s -e 9000 > ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log &
|
donar -a naive -s -e 9000 -v > ../log/server-donar-stdout.log 2> ../log/server-donar-stderr.log &
|
||||||
udpecho -p 9000 > ../log/server-udpecho-stdout.log 2> ../log/server-udpecho-stderr.log
|
udpecho -p 9000 > ../log/server-udpecho-stdout.log 2> ../log/server-udpecho-stderr.log
|
||||||
|
|
|
@ -273,8 +273,8 @@ void evt_core_loop(struct evt_core_ctx* ctx) {
|
||||||
if (events[n].events & (EPOLLERR | EPOLLHUP | EPOLLRDHUP)) {
|
if (events[n].events & (EPOLLERR | EPOLLHUP | EPOLLRDHUP)) {
|
||||||
int err_fd = events[n].data.fd;
|
int err_fd = events[n].data.fd;
|
||||||
int evt = events[n].events;
|
int evt = events[n].events;
|
||||||
if (evt & EPOLLRDHUP) fprintf(stderr, "Epoll Read Hup Event. ");
|
if (evt & EPOLLRDHUP) fprintf(stderr, "Epoll Read Hup Event.\n");
|
||||||
if (evt & EPOLLHUP) fprintf(stderr, "Epoll Hup Event. ");
|
if (evt & EPOLLHUP) fprintf(stderr, "Epoll Hup Event.\n");
|
||||||
if (evt & EPOLLERR) {
|
if (evt & EPOLLERR) {
|
||||||
int error = 0;
|
int error = 0;
|
||||||
socklen_t errlen = sizeof(error);
|
socklen_t errlen = sizeof(error);
|
||||||
|
|
Loading…
Reference in a new issue