Application service for long connection by erlang