Code review comment for ~dirk.zimoch/epics-base:iocLogClientFixesTry2

Revision history for this message
mdavidsaver (mdavidsaver) wrote :

I think the 'send(NULL)' pattern is a race condition as it depends on a TCP reset message having arrived prior to the second send(NULL) call. With real network latency I don't think it will work as intended to quickly and reliably detect when the preceding send() elicits a RST.

I'm not going to insist on a change here because I don't think it will break anything. The RST just won't be handled (via. EPIPE) unless the next time the log queue is flushed, and send() is called again.

« Back to merge proposal