SocketPort.__iter__() should now stop iterating at end of stream.