Skip to content

Commit 36ee02c

Browse files
committed
fixed error in some connection cases
1 parent b6fd275 commit 36ee02c

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

Test/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,12 @@ void multithreadthroughputtest() {
252252
int main(int argc, char* argv[]) {
253253
wssautobahntest();
254254
std::this_thread::sleep_for(1s);
255-
/*generaltest();
255+
generaltest();
256256
std::this_thread::sleep_for(1s);
257257
generalTLStest();
258258
std::this_thread::sleep_for(1s);
259259
multithreadtest();
260260
std::this_thread::sleep_for(1s);
261-
multithreadthroughputtest();*/
261+
multithreadthroughputtest();
262262
return 0;
263263
}

src/internal/ClientImpl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ namespace SL {
7272

7373
if (self->onConnection) {
7474
self->onConnection(socket, header);
75-
}
75+
}/*
7676
if (read_buffer->size() > bytes_transferred) {
7777
SL_WS_LITE_LOG(Logging_Levels::INFO_log_level, "Read Extra Data " << read_buffer->size() - bytes_transferred);
78-
}
78+
}*/
7979
ReadHeaderStart(self, socket);
8080
}
8181
else {

src/internal/ListenerImpl.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ namespace SL {
1818
SL_WS_LITE_LOG(Logging_Levels::INFO_log_level, "Parse Handshake failed ");
1919
return;
2020
}
21-
if (handshakecontainer->Read.size() > 0) {
21+
/* if (handshakecontainer->Read.size() > 0) {
22+
2223
SL_WS_LITE_LOG(Logging_Levels::INFO_log_level, "READ MORE DATA " << handshakecontainer->Read.size());
2324
return;
24-
}
25+
}*/
2526

2627
std::ostream handshake(&handshakecontainer->Write);
2728
if (Generate_Handshake(handshakecontainer->Header, handshake)) {

0 commit comments

Comments
 (0)