mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-09 09:00:34 +00:00
server/red_channel: add TODO
This commit is contained in:
parent
e655c5d26e
commit
e9103c67ad
@ -64,6 +64,10 @@ static int red_peer_receive(RedsStreamContext *peer, uint8_t *buf, uint32_t size
|
||||
return pos - buf;
|
||||
}
|
||||
|
||||
// TODO: this implementation, as opposed to the old implementation in red_worker,
|
||||
// does many calls to red_peer_receive and through it cb_read, and thus avoids pointer
|
||||
// arithmetic for the case where a single cb_read could return multiple messages. But
|
||||
// this is suboptimal potentially. Profile and consider fixing.
|
||||
static void red_peer_handle_incoming(RedsStreamContext *peer, IncomingHandler *handler)
|
||||
{
|
||||
int bytes_read;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user