in tcp write callback and write and read and write is done perform callback. tcp connection is selected to not toggle readwrite and give closed callback.