@@ -857,11 +857,6 @@ void CSidekickNet::handleQueuedNetworkAction()
857857
858858 handleModemEmulation ( false );
859859
860- // every couple of seconds + seconds needed for request
861- // log cpu temp + uptime + free memory (getSysMonInfo)
862- // in wlan case do keep-alive measures
863- // if ( (m_pTimer->GetUptime() - m_timestampOfLastWLANKeepAlive) > 10) //(netEnableWebserver ? 7:5))
864- // {
865860 #ifdef WITH_WLAN // we apparently don't need wlan keep-alive at all if we just always do the yield!!!
866861 for (unsigned z=0 ; z < 100 ; z++)
867862 {
@@ -882,38 +877,8 @@ void CSidekickNet::handleQueuedNetworkAction()
882877 // maybe we can check here ich sktp browser is active too?
883878 if ( !RaspiHasOnlyWLAN () && !m_isC128 && !isSKTPScreenActive () && strcmp ( m_currentKernelRunning, " m" ) == 0 && ( strcmp ( m_CSDBDownloadExtension, " d64" ) != 0 ))
884879 requireCacheWellnessTreatment ();
885- /*
886- // if (!netEnableWebserver)
887- {
888- //Circle42 offers experimental WLAN, but it seems to
889- //disconnect very quickly if there is no traffic.
890- //This can be very annoying.
891- //As a WLAN keep-alive, we auto queue a network event
892- //to avoid WLAN going into "zombie" disconnected mode
893-
894- //further tests have to be done if the keep-alive and the webserver
895- //run together smoothly
896- if (m_loglevel > 1)
897- logger->Write ("CSidekickNet", LogNotice, "Triggering WLAN keep-alive request...");
898- if (m_SKTPServer.port != 0)
899- {
900- char pResponseBuffer[4097]; //TODO: can we reuse something else existing here?
901- CString path = isSktpSessionActive() ? getSktpPath( 92 ) : "/givemea404response.html";
902- HTTPGet ( m_SKTPServer, path, pResponseBuffer, m_sktpResponseLength);
903- }
904- else
905- UpdateTime();
906- }
907- */
908880 #endif
909- // m_timestampOfLastWLANKeepAlive = m_pTimer->GetUptime();
910- if (m_loglevel > 3 )
911- logger->Write (" CSidekickNet" , LogNotice, getSysMonInfo (1 ));
912- // }
913-
914881 }
915- // else if (isRunning && isAnyNetworkActionQueued() && usesWLAN())
916- // m_timestampOfLastWLANKeepAlive = m_pTimer->GetUptime();
917882
918883 if (m_queueDelay > 0 )
919884 {
0 commit comments