y10k / rims

Ruby IMap Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ALERT message not notified to client immediately

y10k opened this issue · comments

For example:
The server immediately (at 23:58:30.917778) sends an [ALERT] but the [ALERT] does not reach the client until OK LOGIN (at 00:15:05.766149) due to buffering.

I, [2019-04-25T23:58:21.788491 #26752]  INFO -- rims: [975a932,6] w "* OK RIMS v0.2.4 IMAP4rev1 service ready.\r\n"
I, [2019-04-25T23:58:26.095657 #26752]  INFO -- rims: [975a932,6] r "x capability\r\n"
I, [2019-04-25T23:58:26.096667 #26752]  INFO -- rims: [975a932,6] w "* CAPABILITY IMAP4rev1 UIDPLUS IDLE AUTH=PLAIN\r\n"
I, [2019-04-25T23:58:26.096915 #26752]  INFO -- rims: [975a932,6] w "x OK CAPABILITY completed\r\n"
I, [2019-04-25T23:58:30.709944 #26752]  INFO -- rims: [975a932,6] r "x login toki rshd8nmbk\r\n"
I, [2019-04-25T23:58:30.917778 #26752]  INFO -- rims: [975a932,6] w "* OK [ALERT] start user data recovery.\r\n"
I, [2019-04-26T00:15:05.759425 #26752]  INFO -- rims: [975a932,6] w "* OK completed user data recovery.\r\n"
I, [2019-04-26T00:15:05.766149 #26752]  INFO -- rims: [975a932,6] w "x OK LOGIN completed\r\n"