FIX : segfaulft and find max-socket