Changed order of cleanup when done with handshake

This commit is contained in:
Robinson 2023-07-20 20:39:58 +02:00
parent 0e3cc803b2
commit e2a4887a19
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C

View File

@ -448,11 +448,11 @@ internal object ServerHandshakePollers {
server.listenerManager.notifyError(ServerHandshakeException("[$logInfo] Error processing IPC handshake", e)) server.listenerManager.notifyError(ServerHandshakeException("[$logInfo] Error processing IPC handshake", e))
} }
driver.close(publication, logInfo)
// we should immediately remove the logbuffer for this! Aeron will **EVENTUALLY** remove the logbuffer, but if errors // we should immediately remove the logbuffer for this! Aeron will **EVENTUALLY** remove the logbuffer, but if errors
// and connections occur too quickly (within the cleanup/linger period), we can run out of memory! // and connections occur too quickly (within the cleanup/linger period), we can run out of memory!
driver.deleteLogFile(image) driver.deleteLogFile(image)
driver.close(publication, logInfo)
} }
} }
} }