bugfix for tcp : EV_CLOSE can't happen before data
Merge branch 'comp_test'