From: Eliezer Croitoru Date: 2012-07-13T06:37:30+09:00 Subject: Need some help to implement something in eventmachine. I wrote my server in pure eventmachine source at: https://github.com/elico/echelon i am struggling to understand something. in eventmachine i have "receive_data" method with a "data" variable and the send_data(data) method. i have implemented the server logic as : ## def post_init cleanup_all_data end def receive_data(data) #data parsing code send_data(response) cleanup_all_data end ## but do i really need to cleanup data? if it's a tcp socket and non persistent connection then it's a dedicated connection and when it's closed all the data is dead? or it's an endless loop i need to cleanup the data for the next connection? Thanks, Eliezer -- Eliezer Croitoru https://www1.ngtech.co.il IT consulting for Nonprofit organizations eliezer ngtech.co.il