event handler init moved to main
one 'if' removed from main loop
rp_resize_buffer renamed to rp_buffer_resize
separate ping interval per server