A more extensible implementation of keep-alive over tranport layer