[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/rtmp r9847: return a boolean to signify wh
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/rtmp r9847: return a boolean to signify whether the connection is set to 'Keep-Alive'. |
Date: |
Wed, 17 Dec 2008 17:06:42 -0700 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9847
committer: address@hidden
branch nick: rtmp
timestamp: Wed 2008-12-17 17:06:42 -0700
message:
return a boolean to signify whether the connection is set to 'Keep-Alive'.
modified:
libnet/http.cpp
=== modified file 'libnet/http.cpp'
--- a/libnet/http.cpp 2008-12-17 17:29:24 +0000
+++ b/libnet/http.cpp 2008-12-18 00:06:42 +0000
@@ -1416,7 +1416,9 @@
string url, filespec, parameters;
string::size_type pos;
HTTP *www = new HTTP;
-// HTTP *www = reinterpret_cast<HTTP *>(args->handler);
+ bool result = false;
+
+// Network *net = reinterpret_cast<Network *>(args->handler);
bool done = false;
// www.setHandler(net);
@@ -1429,7 +1431,7 @@
log_debug("Starting to wait for data in net for fd #%d", args->netfd);
// Wait for data, and when we get it, process it.
- do {
+// do {
#ifdef USE_STATISTICS
struct timespec start;
@@ -1469,9 +1471,11 @@
// connection.
if (!www->keepAlive()) {
log_debug("Keep-Alive is off", www->keepAlive());
+ result = false;
done = true;
} else {
log_debug("Keep-Alive is on", www->keepAlive());
+ result = true;
done = true;
}
#ifdef USE_STATISTICS
@@ -1480,12 +1484,13 @@
log_debug("Processing time for GET request was %f seconds",
(float)((end.tv_sec - start.tv_sec) + ((end.tv_nsec -
start.tv_nsec)/1e9)));
#endif
- } while(done != true);
+// } while(done != true);
// hand->notify();
log_debug("http_handler all done now finally...");
-
+
+ return result;
} // end of httphandler
} // end of extern C
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/rtmp r9847: return a boolean to signify whether the connection is set to 'Keep-Alive'.,
rob <=