WebSocket в лифте: соединение есть, но приложение не работает
A scenario describes entering an elevator where internet connectivity drops, yet the WebSocket connection still shows OPEN and the application believes everything is fine. After going down and exiting, the old WebSocket may still remain OPEN. This illustrates a common distributed-systems problem. The core issue is that the operating system is not required to immediately tell the application that a TCP connection has stopped carrying data.
Вы заходите в лифт. Интернет пропадает. WebSocket по-прежнему OPEN. Приложение уверено, что все хорошо. Вы спускаетесь вниз, выходите, старый WebSocket может быть по-прежнему OPEN. Добро пожаловать в мир распределенных систем. Главная проблема: операционная система не обязана мгновенно сообщать приложению, что TCP-соединение перестало передавать данные. Читать далее