I know that each time after port_getn() returns some events, the related sockets have to be re-associated after the events are processed(read, write, accept…). But since in my code, there are many places where events are processed (read), in order not to miss any socket re-association, instead of reassoicate them after the events are processed, I decided to reassoicate them (the ones who have event fired last time) in front of port_getn(). I think in this way, all sockets which just process events will be reassoicated again (Note that I need to reassociate all of them unless they are closed). No reassociate of these sockets will be missed. And even if some sockets are closed, they just fail to re-associate, but they will not affect anything.
However, I found some sockets can still be reassoicated after they are closed, which finally caused some problems. what is wrong with my approach? Or maybe I have to do reassicate one by one? This message posted from opensolaris.org _______________________________________________ perf-discuss mailing list perf-discuss@opensolaris.org