Jelajahi Sumber

test_large_put: added request timeout detection

Evgeny Grin (Karlson2k) 4 tahun lalu
induk
melakukan
38dcc34b9c
1 mengubah file dengan 2 tambahan dan 5 penghapusan
  1. 2 5
      src/testcurl/test_large_put.c

+ 2 - 5
src/testcurl/test_large_put.c

@@ -776,11 +776,8 @@ testPutExternal (void)
     MHD_run (d);
   }
   if (multi != NULL)
-  {
-    curl_multi_remove_handle (multi, c);
-    curl_easy_cleanup (c);
-    curl_multi_cleanup (multi);
-  }
+    mhdErrorExitDesc ("Request has been aborted by timeout");
+
   MHD_stop_daemon (d);
   if (cbc.pos != strlen ("/hello_world"))
   {