Changeset 83441 in vbox
- Timestamp:
- Mar 26, 2020 2:38:25 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 136663
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp
r83438 r83441 1743 1743 if (pvScratchBuf) 1744 1744 { 1745 int cFailedMsgPeeks = 0; 1746 1745 1747 /* 1746 1748 * Message processing loop. … … 1764 1766 if (fShutdown) 1765 1767 break; 1768 1769 cFailedMsgPeeks = 0; 1770 1771 /* Let others run (guests are often single CPU) ... */ 1772 RTThreadYield(); 1766 1773 } 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 } 1772 1785 } 1773 1786
Note:
See TracChangeset
for help on using the changeset viewer.