summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/include/HTTPStream.h
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-05-11 11:10:21 -0700
committerAndreas Huber <andih@google.com>2010-05-11 11:10:21 -0700
commitba7c35717116e4dcb8242644f6ccf07c25c7b251 (patch)
treecabacf8bb7efd7d22fa408c8a3aacc8d476eee87 /media/libstagefright/include/HTTPStream.h
parentadbda96f6a05507788bb4163d7fbe8a95948f0a5 (diff)
downloadframeworks_av-ba7c35717116e4dcb8242644f6ccf07c25c7b251.zip
frameworks_av-ba7c35717116e4dcb8242644f6ccf07c25c7b251.tar.gz
frameworks_av-ba7c35717116e4dcb8242644f6ccf07c25c7b251.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 'media/libstagefright/include/HTTPStream.h')
-rw-r--r--media/libstagefright/include/HTTPStream.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/media/libstagefright/include/HTTPStream.h b/media/libstagefright/include/HTTPStream.h
index 5d638f3..35b0865 100644
--- a/media/libstagefright/include/HTTPStream.h
+++ b/media/libstagefright/include/HTTPStream.h
@@ -52,6 +52,9 @@ public:
bool find_header_value(
const string &key, string *value) const;
+ // Pass a negative value to disable the timeout.
+ void setReceiveTimeout(int seconds);
+
private:
enum State {
READY,