aboutsummaryrefslogtreecommitdiff
path: root/weed/util/net_timeout.go
AgeCommit message (Collapse)AuthorFilesLines
2025-12-04fix: S3 downloads failing after idle timeout (#7626)Chris Lu1-93/+26
* fix: S3 downloads failing after idle timeout (#7618) The idle timeout was incorrectly terminating active downloads because read and write deadlines were managed independently. During a download, the server writes data but rarely reads, so the read deadline would expire even though the connection was actively being used. Changes: 1. Simplify to single Timeout field - since this is a 'no activity timeout' where any activity extends the deadline, separate read/write timeouts are unnecessary. Now uses SetDeadline() which sets both at once. 2. Implement proper 'no activity timeout' - any activity (read or write) now extends the deadline. The connection only times out when there's genuinely no activity in either direction. 3. Increase default S3 idleTimeout from 10s to 120s for additional safety margin when fetching chunks from slow storage backends. Fixes #7618 * Update weed/util/net_timeout.go Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-11-03S3: prevent deleting buckets with object locking (#7434)Chris Lu1-5/+5
* prevent deleting buckets with object locking * addressing comments * Update s3api_bucket_handlers.go * address comments * early return * refactor * simplify * constant * go fmt
2025-10-30network: Adaptive timeout (#7410)Chris Lu1-4/+67
* server can start when no network for local dev * fixed superfluous response.WriteHeader call" warning * adaptive based on last write time * more doc * refactoring
2022-09-14refactor(various): `Listner` -> `Listener` readability improvements (#3672)Ryan Russell1-11/+11
* refactor(net_timeout): `listner` -> `listener` Signed-off-by: Ryan Russell <git@ryanrussell.org> * refactor(s3): `s3ApiLocalListner` -> `s3ApiLocalListener` Signed-off-by: Ryan Russell <git@ryanrussell.org> * refactor(filer): `localPublicListner` -> `localPublicListener` Signed-off-by: Ryan Russell <git@ryanrussell.org> * refactor(command): `masterLocalListner` -> `masterLocalListener` Signed-off-by: Ryan Russell <git@ryanrussell.org> * refactor(net_timeout): `ipListner` -> `ipListener` Signed-off-by: Ryan Russell <git@ryanrussell.org> Signed-off-by: Ryan Russell <git@ryanrussell.org>
2022-07-29move to https://github.com/seaweedfs/seaweedfschrislu1-2/+2
2022-05-04avoid fatal error if port is already in usechrislu1-1/+3
2022-04-27skip ipv6 all interfaces and localhostchrislu1-1/+1
fix https://github.com/chrislusf/seaweedfs/issues/2983
2022-03-17skip localhost if bound to all interfaces already 0.0.0.0 or 127.0.0.1chrislu1-1/+1
2022-03-15master, filer, s3: also listen to "localhost" in addition to specific ip addresschrislu1-6/+35
related to https://github.com/chrislusf/seaweedfs/issues/1937
2021-12-29dynamically adjust connection timeoutchrislu1-2/+6
better fix for https://github.com/chrislusf/seaweedfs/issues/2541
2020-10-13filer: linearize timeout for large chunk of dataChris Lu1-1/+2
2020-04-20close the connection with better accoutingChris Lu1-4/+7
2020-03-20master: fix connections count reportingChris Lu1-1/+5
2020-02-14ignore error when counting closed connectionsChris Lu1-5/+2
2018-09-03fix possible connection counting errorChris Lu1-2/+5
2017-01-10disable master connection timeoutChris Lu1-6/+10
temporarily disable master connection timeout due to heartbeat connection timeout
2016-06-02directory structure change to work with glideChris Lu1-0/+81
glide has its own requirements. My previous workaround caused me some code checkin errors. Need to fix this.