retrying messages when queue is full. FIX: process_data_from_socket could cause a infty loop
Moved config to global_config