diff options
-rwxr-xr-x | TODO | 4 | ||||
-rw-r--r-- | tests/lacwget.c | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -10,6 +10,10 @@ correctness: LAC_HTTP_ERROR_BUGGY_PIPELINING indicating that the server-side implementation of pipelining is buggy. + * Need to handle POLLERR on the dns file descriptor. We can + somehow get connrefused. LacWatch code should also be fixed + to it doesn't spin hwen et gets POLLERR and noone cares. + * SIGPIPE? - ignore it around calls to send()? diff --git a/tests/lacwget.c b/tests/lacwget.c index bf38506..8588f3a 100644 --- a/tests/lacwget.c +++ b/tests/lacwget.c @@ -578,6 +578,8 @@ create_name (const char *uri_str) if (last_slash) return g_strdup (last_slash + 1); + else + return g_strdup (uri_str); } static gboolean @@ -590,6 +592,8 @@ do_download (LacUri *base_uri, const gchar *uri_str, gboolean try_parse) page_info->try_parse = try_parse; page_info->file = fopen (create_name (uri_str), "w"); + + g_print ("write: %s\n", create_name (uri_str)); #if 0 printf ("uri: %s\n", uri_str); |