summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/BPStructs.cpp
diff options
context:
space:
mode:
authorVicki Pfau <vi@endrift.com>2021-03-02 18:43:55 -0800
committerVicki Pfau <vi@endrift.com>2021-03-02 18:53:44 -0800
commitf6e9003ddc744c009a8451a05a02fcdcc47daded (patch)
tree9e787f7f6541ddc6d720a98787b5fc9015dd84f0 /Source/Core/VideoCommon/BPStructs.cpp
parent7712f0831fdc1d573f0a0726ba86dd3ecdb9541e (diff)
SI/DeviceGBA: Ensure data socket isn't backed up
When reading a reply from a message sent to the data socket there is the possibility that the other side gets sent multiple messages before replying to any of them, which can lead to multiple replies sent in a row. Though this only happens when things time out, it's quite possible for these timeouts to happen or build up over time, especially when initiating the connection. This change makes sure to flush any pending bytes that have not been read yet out of the socket after a successful POLL reply is received, since that is the most common time when backups occur, and as well as using the exact number of bytes in an expected reply, to ensure the received data and the message it's replying to do not get out of sync.
Diffstat (limited to 'Source/Core/VideoCommon/BPStructs.cpp')
0 files changed, 0 insertions, 0 deletions