summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSøren Sandmann <sandmann@redhat.com>2007-07-30 16:59:25 -0400
committerSøren Sandmann <sandmann@redhat.com>2007-07-30 16:59:25 -0400
commit09e6dd2aacd7f7485c1edae78058d6f1bc2cefd2 (patch)
tree465c26ee7160c0ba867bec735c03171ea8d7b2e0 /src
parent8ff30a75f2535a505fd690cefffd00d160208de9 (diff)
TODO
Diffstat (limited to 'src')
-rw-r--r--src/lachttp.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lachttp.c b/src/lachttp.c
index 9babbe7..24335aa 100644
--- a/src/lachttp.c
+++ b/src/lachttp.c
@@ -826,9 +826,7 @@ real_parse_header (LacHttpRequest *request, const gchar *input)
}
else if (g_ascii_strcasecmp (header_content, "keep-alive") == 0)
{
-#if 0
g_print ("CONNECTION: KEEP-ALIVE\n");
-#endif
request->seen_connection_keep_alive = TRUE;
}
}
@@ -1853,9 +1851,7 @@ http_host_transport_broken_server_notify (HttpHost *host,
host->optimistic = FALSE;
host->broken_server = TRUE;
-#if 0
g_print ("************* BROKEN SERVER DETECTED ***************\n");
-#endif
/* FIXME: for now we recover for as long as the *first* transport
* requests. We should recover for max over all transports
@@ -2065,7 +2061,7 @@ http_transport_flush_write_buffer (HttpTransport *transport)
if (n_bytes > 0)
{
/* FIXME: should we have a lac_connection_write_byte_queue()? */
- lac_connection_write (transport->connection, (guint8 *)bytes, n_bytes);
+ lac_connection_write (transport->connection, bytes, n_bytes);
lac_byte_queue_delete_head (transport->write_buffer, n_bytes);
}
@@ -2414,6 +2410,8 @@ http_transport_handle_close (HttpTransport *transport)
* We should perhaps special case that particular server
*/
+ g_print ("Deceptive server lead us to believe that it supported pipelining, but it didn't\n");
+
http_host_transport_broken_server_notify (
transport->host, transport, 0);
}