What is Socket Timeout?
Socket timeout occurs when a network connection is successfully established, but the server fails to transmit data within the client's configured waiting period. Unlike a connection timeout where the initial handshake fails, a socket timeout happens mid-flight, often while the server is struggling to query a database, render a heavy DOM, or intentionally tarpitting a suspected bot. For scraping pipelines, unhandled socket timeouts lead to hanging workers, resource exhaustion, and silent data gaps.