cleanup
This commit is contained in:
		| @@ -71,6 +71,15 @@ namespace ix | ||||
|                                                   << " out of " << total << std::endl; | ||||
|                                         return true; | ||||
|                                     }); | ||||
|  | ||||
|                                     do | ||||
|                                     { | ||||
|                                         size_t bufferedAmount = client->bufferedAmount(); | ||||
|                                         std::cerr << bufferedAmount << " bytes left to be sent" << std::endl; | ||||
|  | ||||
|                                         std::chrono::duration<double, std::milli> duration(10); | ||||
|                                         std::this_thread::sleep_for(duration); | ||||
|                                     } while (client->bufferedAmount() != 0); | ||||
|                                 } | ||||
|                             } | ||||
|                         } | ||||
|   | ||||
| @@ -257,6 +257,15 @@ namespace ix | ||||
|             return true; | ||||
|         }); | ||||
|  | ||||
|         do | ||||
|         { | ||||
|             size_t bufferedAmount = _webSocket.bufferedAmount(); | ||||
|             std::cout << bufferedAmount << " bytes left to be sent" << std::endl; | ||||
|  | ||||
|             std::chrono::duration<double, std::milli> duration(10); | ||||
|             std::this_thread::sleep_for(duration); | ||||
|         } while (_webSocket.bufferedAmount() != 0); | ||||
|  | ||||
|         bench.report(); | ||||
|         auto duration = bench.getDuration(); | ||||
|         auto transferRate = 1000 * content.size() / duration; | ||||
|   | ||||
| @@ -70,6 +70,15 @@ namespace ix | ||||
|                                                   << " out of " << total << std::endl; | ||||
|                                         return true; | ||||
|                                     }); | ||||
|  | ||||
|                                     do | ||||
|                                     { | ||||
|                                         size_t bufferedAmount = client->bufferedAmount(); | ||||
|                                         std::cerr << bufferedAmount << " bytes left to be sent" << std::endl; | ||||
|  | ||||
|                                         std::chrono::duration<double, std::milli> duration(10); | ||||
|                                         std::this_thread::sleep_for(duration); | ||||
|                                     } while (client->bufferedAmount() != 0); | ||||
|                                 } | ||||
|                             } | ||||
|                         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user