Is this connection running through a firewall?

If so, check the timeout there.

I'd bet it's breaking your connection (pipe).