diff options
author | Dan McGee <dpmcgee@gmail.com> | 2012-02-16 23:30:12 -0600 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2012-02-21 10:20:46 +0200 |
commit | bdfd6c234bca76232f4bac308fc21321ebba7f1a (patch) | |
tree | 07ff0c118827f6a39c8a046ae0820ec6e33cb1ae /server/red_channel.c | |
parent | 143a1df24e83e9c1e173c16aeb76d61ffdce9598 (diff) | |
download | spice-bdfd6c234bca76232f4bac308fc21321ebba7f1a.tar.gz spice-bdfd6c234bca76232f4bac308fc21321ebba7f1a.tar.xz spice-bdfd6c234bca76232f4bac308fc21321ebba7f1a.zip |
Respect IOV_MAX if defined
Solaris has a pitiful maximum writev vector size of only 16, so the ping
request at initial startup destroyed this call and broke things
immediately. Reimplement stream_writev_cb() to respect IOV_MAX and break
the writev() calls into chunks as necessary. Care was taken to return
the correct values as necessary so the EAGAIN handling logic can
determine where to resume the writev call the next time around.
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Diffstat (limited to 'server/red_channel.c')
0 files changed, 0 insertions, 0 deletions