fix socket readline