Date: Tue, 25 Sep 2012 17:23:57 +0300 From: =?KOI8-R?B?98HEyc0g9dLB2sHF1w==?= <tretuliy2@gmail.com> To: freebsd-hackers@freebsd.org Subject: NgAllocRecvMsg() hangs Message-ID: <CAAEEwq0-cnMMLojAJJZ8eZ6=-O3CppH1ijg_bBUwnXNX%2BfyyYg@mail.gmail.com>
index | next in thread | raw e-mail
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.
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAEEwq0-cnMMLojAJJZ8eZ6=-O3CppH1ijg_bBUwnXNX%2BfyyYg>
