Skip to content

Commit

Permalink
EAGAIN for tls during diskless load
Browse files Browse the repository at this point in the history
  • Loading branch information
madolson committed May 21, 2020
1 parent fe640e5 commit 5109f16
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/replication.c
Original file line number Diff line number Diff line change
Expand Up @@ -1526,6 +1526,10 @@ void readSyncBulkPayload(connection *conn) {

nread = connRead(conn,buf,readlen);
if (nread <= 0) {
if (connGetState(conn) == CONN_STATE_CONNECTED) {
/* equivalent to EAGAIN */
return;
}
serverLog(LL_WARNING,"I/O error trying to sync with MASTER: %s",
(nread == -1) ? strerror(errno) : "connection lost");
cancelReplicationHandshake();
Expand Down

0 comments on commit 5109f16

Please sign in to comment.