From: Ying X. <yin...@wi...> - 2012-06-14 09:11:53
|
Erik Hugne wrote: >> 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. > Right, please ignore the noise. Regards, Ying > //E > > |