Some fixes

This commit is contained in:
WolverinDEV
2019-09-14 12:06:48 +02:00
parent 709d2c0f5d
commit 2ae00f07cd
18 changed files with 198 additions and 156 deletions
+2
View File
@@ -103,6 +103,7 @@ void WebClient::enqueue_raw_packet(const pipes::buffer_view &msg) {
if(this->writeEvent)
event_add(this->writeEvent, nullptr);
}
this->connectionStatistics->logOutgoingPacket(stats::ConnectionStatistics::category::COMMAND, buffer.length());
}
void WebClient::registerMessageProcess() {
@@ -136,6 +137,7 @@ void WebClient::processNextMessage(const std::chrono::system_clock::time_point&
bool has_next = !this->queue_read.empty();
buffer_lock.unlock();
this->connectionStatistics->logIncomingPacket(stats::ConnectionStatistics::category::COMMAND, buffer.length());
if(!this->ssl_detected) {
this->ssl_detected = true;
this->ssl_encrypted = is_ssl_handshake_header(buffer);