AmlSocket & fix blocking bug