Skip to content

Commit 3f6856f

Browse files
committed
clearing readbuf()
1 parent 717ad3a commit 3f6856f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

webserver/proxyclient.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ namespace http {
401401
case status_connected:
402402
CWebsocketFrame frame;
403403
if (frame.Parse((const uint8_t *)readbuf.c_str(), readbuf.size())) {
404+
readbuf.clear();
404405
switch (frame.Opcode()) {
405406
case opcodes::opcode_ping:
406407
write(CWebsocketFrame::Create(opcodes::opcode_pong, PONG, true));
@@ -463,7 +464,8 @@ namespace http {
463464
{
464465
m_pWebEm = webEm;
465466
SetReconnectDelay(15);
466-
connect("proxy.mydomoticz.com", 443);
467+
connect("::1", 2443);
468+
//connect("proxy.mydomoticz.com", 443);
467469
}
468470

469471
void CProxyClient::Disconnect()

0 commit comments

Comments
 (0)