Nmap Development mailing list archives

Re: [Nsock] Scalable event handling


From: Henri Doreau <henri.doreau () gmail com>
Date: Sun, 11 Aug 2013 02:09:14 +0200

2013/8/6 David Fifield <david () bamsoftware com>:
On Thu, Jul 25, 2013 at 10:31:03PM +0200, Henri Doreau wrote:
2013/7/25 David Fifield <david () bamsoftware com>:
run_tests.sh is failing for me:

started UDP listener on port 55234 (pid 5694)
started TCP listener on port 55235 (pid 5696)
started TCP SSL listener on port 55236 (pid 5697)
nsock pool user data                            [OK]
test timer operations                           [OK]
set standard log levels                         [OK]
check error log levels                          [OK]
simple tcp connection                           [FAILED] (Connection refused)

hmm... I can't reproduce this. Did you try cleaning & re-building the
test suite after updating nsock? Does netstat -tlnp show the ncat
listeners? You can also see (or send me) the output of "./run_tests.sh
trace" (runs it within strace).

Here's your trace (the last part only).

write(1, "[\33[1m\33[32mOK\33[0m]\nsimple tcp con"..., 66) = 66
epoll_create(10)                        = 3
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 4
fcntl(4, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
connect(4, {sa_family=AF_INET, sin_port=htons(55235), sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EINPROGRESS 
(Operation now in progress)
epoll_ctl(3, EPOLL_CTL_ADD, 4, {EPOLLIN|EPOLLPRI|EPOLLOUT|EPOLLERR|EPOLLHUP|EPOLLET|0x2000, {u32=18381712, 
u64=18381712}}) = 0
epoll_wait(3, {{EPOLLIN|EPOLLOUT|EPOLLERR|EPOLLHUP|0x2000, {u32=18381712, u64=18381712}}}, 128, 4000) = 1
getsockopt(4, SOL_SOCKET, SO_ERROR, [111], [4]) = 0
epoll_ctl(3, EPOLL_CTL_MOD, 4, {EPOLLET, {u32=18381712, u64=18381712}}) = 0
write(1, "[\33[1m\33[31mFAILED\33[0m] (Connectio"..., 43) = 43
exit_group(-111)                        = ?

David Fifield

Using r31738, can you try to run the tests as: `NCAT=../../ncat/ncat
./run_tests.sh' ? I'm wondering if maybe you had a version of ncat
installed which was incompatible with how the tests use it...

-- 
Henri
_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/


Current thread: