Feature/reduce connection write event idle loop