Set writeDeadline in StreamIn

Refactor connection test to use a real tcp server

Signed-off-by: Max Brunsfeld <mbrunsfeld@pivotallabs.com>