Masaaki Sekiya
2008-11-27 18:13:39 UTC
Hi.
I can't get any comments before. so now I've posted again.
orbcore/tcp/tcpAddress.cc :L261-264 is as below.
int rc = poll(&fds,1,timeout);
if (rc > 0 && fds.revents & POLLERR) {
rc = 0;
}
Why is "rc" set to 0 , when poll results in POLLERR ?
The value of "rc" equals zero means poll resulted in timeouts.
I think setting "rc" to zero without timeouts causes
many loop without system idle and huge CPU consumption.
Is it no problem ?
It is related to e-mail:[Subject: Remote methods blocks]
which I posted before.
Thanks
I can't get any comments before. so now I've posted again.
orbcore/tcp/tcpAddress.cc :L261-264 is as below.
int rc = poll(&fds,1,timeout);
if (rc > 0 && fds.revents & POLLERR) {
rc = 0;
}
Why is "rc" set to 0 , when poll results in POLLERR ?
The value of "rc" equals zero means poll resulted in timeouts.
I think setting "rc" to zero without timeouts causes
many loop without system idle and huge CPU consumption.
Is it no problem ?
It is related to e-mail:[Subject: Remote methods blocks]
which I posted before.
Thanks