summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-08-10 11:39:38 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-08-10 11:39:38 -0700
commitab68c7f0c835a0b6906e65d683c452cf352e30f7 (patch)
tree4219774a4f0af3dd218b45f16a692db8fe3ce26d /media
parent51dfe6d646ddcc5fc252aa4c19c9936d32af8ad7 (diff)
parent2097f5347b77861fe2559f8d76d7d455dc857f53 (diff)
downloadframeworks_av-ab68c7f0c835a0b6906e65d683c452cf352e30f7.zip
frameworks_av-ab68c7f0c835a0b6906e65d683c452cf352e30f7.tar.gz
frameworks_av-ab68c7f0c835a0b6906e65d683c452cf352e30f7.tar.bz2
Merge "Many, many developers misread or don't read the http specs and terminate lines with '\n' instead of CRLF '\r\n' as required. Enable the workaround for this by default. Also increase the socket read timeout to 30 secs." into gingerbread
Diffstat (limited to 'media')
-rw-r--r--media/libstagefright/HTTPStream.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/HTTPStream.cpp b/media/libstagefright/HTTPStream.cpp
index 9c99866..ccc6a34 100644
--- a/media/libstagefright/HTTPStream.cpp
+++ b/media/libstagefright/HTTPStream.cpp
@@ -68,7 +68,7 @@ status_t HTTPStream::connect(const char *server, int port) {
return UNKNOWN_ERROR;
}
- setReceiveTimeout(5); // Time out reads after 5 secs by default
+ setReceiveTimeout(30); // Time out reads after 30 secs by default
mState = CONNECTING;
@@ -158,7 +158,7 @@ status_t HTTPStream::send(const char *data) {
// The workaround accepts both behaviours but could potentially break
// legitimate responses that use a single newline to "fold" headers, which is
// why it's not yet on by default.
-#define WORKAROUND_FOR_MISSING_CR 0
+#define WORKAROUND_FOR_MISSING_CR 1
status_t HTTPStream::receive_line(char *line, size_t size) {
if (mState != CONNECTED) {