Re: [Sqlrelay-discussion] Possible hang at receiveFileDescriptor (rudiments)
Brought to you by:
mused
From: David M. <dav...@fi...> - 2012-05-26 01:32:25
|
Thanks Georgiy, You are correct, it should be safePoll(120,0,true,false). Thanks for finding that! I'm committing it to CVS now and the fix will be in the next release. Dave dav...@fi... On 05/23/2012 10:39 AM, Georgiy Kirichenko wrote: > > Hi, > > In some cases sqlr-connection will hang at this call: > result=recvmsg(pvt->_fd,&messageheader,0); (filedescriptor.cpp:1876, > filedescriptor::receiveFileDescriptor) - this is gdb backtrace. > > Before this safePoll(120,0,false,true) is called, but it wait POLLOUT > event instead of POLLIN (read(false) and write(true) params). In this > case, when sqlr-listener fail before passFileDescriptor, sqlr-connect > will hang. > > I think, correct call is safePoll(120,0,true,false) - we should wait > POLLIN event. > > I test this solution, and in my case have no problem. > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > _______________________________________________________ > Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting > http://www.doteasy.com > > > _______________________________________________ > Sqlrelay-discussion mailing list > Sql...@li... > https://lists.sourceforge.net/lists/listinfo/sqlrelay-discussion > > > _______________________________________________________ > Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting > http://www.doteasy.com |