diff options
author | Andreas Huber <andih@google.com> | 2010-05-11 11:10:21 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-05-11 11:10:21 -0700 |
commit | e67c1607ccab2702ea745f962b5354be8f45c733 (patch) | |
tree | ff59eaa63cad74113ed83fd2f349cf8e8151be9e /include | |
parent | 78624e41da166712aaa5ae47e4d3467337ac810a (diff) | |
download | frameworks_base-e67c1607ccab2702ea745f962b5354be8f45c733.zip frameworks_base-e67c1607ccab2702ea745f962b5354be8f45c733.tar.gz frameworks_base-e67c1607ccab2702ea745f962b5354be8f45c733.tar.bz2 |
Support for customizable socket-read timeouts through the HTTP response.
Specify a response header of "X-SocketTimeout: 15" to override the default timeout
of 5 secs with a timeout of 15 seconds. Specify a negative value to disable the
timeout altogether.
Change-Id: I545adf3d8b3f7efe5f8d081a641c6404440a77db
related-to-bug: 2675721
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/HTTPDataSource.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/stagefright/HTTPDataSource.h b/include/media/stagefright/HTTPDataSource.h index f3b44fd..0400bea 100644 --- a/include/media/stagefright/HTTPDataSource.h +++ b/include/media/stagefright/HTTPDataSource.h @@ -91,6 +91,7 @@ private: void initHeaders(const KeyedVector<String8, String8> *overrides); status_t connectWithRedirectsAndRange(off_t rangeStart); + void applyTimeoutResponse(); HTTPDataSource(const HTTPDataSource &); HTTPDataSource &operator=(const HTTPDataSource &); |