server: adjust handling of invalid SID

Downgrade severity as invalid SIDs are an
unavoidable possibility after server
channel destroy.
This commit is contained in:
Michael Davidsaver
2020-08-08 16:09:35 -07:00
parent e52ae674ca
commit 280919b3ec
5 changed files with 25 additions and 14 deletions
+3 -2
View File
@@ -378,8 +378,9 @@ void ServerConn::handle_GPR(pva_app_msg_t cmd)
auto& chan = lookupSID(sid);
if(opByIOID.find(ioid)!=opByIOID.end()) {
log_err_printf(connsetup, "Client %s reuses existing ioid %u\n", peerName.c_str(), unsigned(ioid));
if(!chan || opByIOID.find(ioid)!=opByIOID.end()) {
log_err_printf(connsetup, "Client %s reuses existing sid %u ioid %u\n",
peerName.c_str(), unsigned(sid), unsigned(ioid));
bev.reset();
return;
}