[real-time] ignore error from duplicate send action on socket.io socket (#23787)

GitOrigin-RevId: 992a39a5cff04bcc0814ac6a620ad350d6e1da14
This commit is contained in:
Jakob Ackermann
2025-02-21 09:05:52 +00:00
committed by Copybot
parent 7b2f51aad5
commit c3f94358eb
+5 -1
View File
@@ -262,7 +262,11 @@ if (Settings.shutdownDrainTimeWindow) {
'EPIPE',
'ECONNRESET',
'ERR_STREAM_WRITE_AFTER_END',
].includes(error.code)
].includes(error.code) ||
// socket.io error handler sending on polling connection again.
(error.code === 'ERR_HTTP_HEADERS_SENT' &&
error.stack &&
error.stack.includes('Transport.error'))
) {
Metrics.inc('disconnected_write', 1, { status: error.code })
return logger.warn(