aboutsummaryrefslogtreecommitdiffstats
path: root/test/ws_timeout_hibernate_handler.erl
AgeCommit message (Collapse)Author
2011-09-22Add a test for websocket hibernate + timeout and fix this use caseLoïc Hoguin
The issue was that we were calling erlang:hibernate before a receive .. after .. end call. Erlang hibernates the process before reaching the receive instruction and we therefore couldn't enter the after clause when hibernating. This is now fixed by using erlang:send_after instead and receiving that message instead of using an after clause.