From: Erik H. <eri...@er...> - 2012-06-14 07:50:14
|
> Maybe there has some potential issue, please see below scenario: > > 1. fd = socket(SOCK_STREAM)-->tipc_create() //sock->state = SS_UNCONNECTED > 2. poll(fd) > > Each time the poll() is timed out, the POLLOUT event will be returned to > poll() even if any message *doesn't* be sent via the socket. > > So please confirm the case. > I dont think that's a problem. In this scenario (unconnected socket), the pollout event is necessary for the application to know it can retry the implied connection attempt. //E |