Login: fetching friend list
problem: how to set socket to block mode to prevent following situation
:server send data while client is reading