Update luv_functions.c

push status to lua side for onconnection & after_connect, correct the close call