Netty Channel closed detection

后端 未结 3 1627
深忆病人
深忆病人 2020-12-28 20:23

I am building a server client application using netty and ios, I am facing a problem when the user just turns off WiFi on his/her ios device, the netty server does not know

3条回答
  •  Happy的楠姐
    2020-12-28 20:51

    Use IdleStateHandler

    You can detect when there is no request/responses in given time intervals.

提交回复
热议问题