NgAllocRecvMsg() hangs
Вадим Уразаев
tretuliy2 at gmail.com
Tue Sep 25 14:23:58 UTC 2012
Previous message is accidentaly sends itself.
The piece of code I posted in previous message sends message to node to try
find out if somebody connected to it, the next what I have to do is receive
responce, and I am trying to do it like that:
if (NgAllocRecvMsg(csock, (struct ng_mesg **)&ugetsas.reply, NULL) == -1) {
syslog(LOG_ERR ,"check_and_clear(): Error receiveng responce
from ksocket %s\n",strerror(errno));
ShutFanout();
return EXIT_FAILURE;
}
And program stuck on this command, the debug information I receive :
Sep 25 16:29:38 freebsd-test relaying-ng: RECEIVED RESPONSE:
Sep 25 16:29:38 freebsd-test relaying-ng: SOCKADDR: { fam=32 len=16
addr="[4f5]:" }
Sep 25 16:29:38 freebsd-test relaying-ng: NG_MESG :
Sep 25 16:29:38 freebsd-test relaying-ng: vers 8
Sep 25 16:29:38 freebsd-test relaying-ng: arglen 16
Sep 25 16:29:38 freebsd-test relaying-ng: flags 1
Sep 25 16:29:38 freebsd-test relaying-ng: token 30
Sep 25 16:29:38 freebsd-test relaying-ng: cookie KSOCKET (942710669)
Sep 25 16:29:38 freebsd-test relaying-ng: cmd getpeername (6)
Sep 25 16:29:38 freebsd-test relaying-ng: args inet/10.128.0.44:34817
So it seems all ok, but I can`t understand why is it hangs.
Any help appriciated.
Sorry for bad english.
More information about the freebsd-hackers
mailing list