VirtualBox

Changeset 83441 in vbox


Ignore:
Timestamp:
Mar 26, 2020 2:38:25 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
136663
Message:

Guest Control/VBoxService: Resolved another @todo: Don't spin forever and wait a bit on error in vgsvcGstCtrlSessionSpawnWorker(). bugref:9320

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp

    r83438 r83441  
    17431743            if (pvScratchBuf)
    17441744            {
     1745                int cFailedMsgPeeks = 0;
     1746
    17451747                /*
    17461748                 * Message processing loop.
     
    17641766                        if (fShutdown)
    17651767                            break;
     1768
     1769                        cFailedMsgPeeks = 0;
     1770
     1771                        /* Let others run (guests are often single CPU) ... */
     1772                        RTThreadYield();
    17661773                    }
    1767                     else /** @todo Shouldn't we have a plan for handling connection loss and such?  Now, we'll just spin like crazy. */
    1768                         VGSvcVerbose(3, "Getting host message failed with %Rrc\n", rc); /* VERR_GEN_IO_FAILURE seems to be normal if ran into timeout. */
    1769 
    1770                     /* Let others run (guests are often single CPU) ... */
    1771                     RTThreadYield();
     1774                    else
     1775                    {
     1776                        VGSvcVerbose(1, "Getting host message failed with %Rrc\n", rc);
     1777
     1778                        if (cFailedMsgPeeks++ == 3)
     1779                            break;
     1780
     1781                        RTThreadSleep(3 * RT_MS_1SEC);
     1782
     1783                        /** @todo Shouldn't we have a plan for handling connection loss and such? */
     1784                    }
    17721785                }
    17731786
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette