Stream: Add on_limit and on_timeout callback functions