improve socket request-reply reliability