Forgot to add pending attribute in Stream struct

This attribute is important for nonblocking I/O in order to distinguish
between no data available and connection closed.