[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] libvchan, why read random number of characters


  • To: xen-users@xxxxxxxxxxxxx
  • From: Jarvis Roach <jbr041075@xxxxxxxxx>
  • Date: Fri, 11 Aug 2017 19:36:27 -0400
  • Delivery-date: Fri, 11 Aug 2017 23:38:38 +0000
  • List-id: Xen user discussion <xen-users.lists.xen.org>

Does anyone know of the reason why in libvchan/node.c the writer() function reads in a random (bounded by BUFSIZE) number of bytes from STDIN? Similar question for why a random a number of bytes (bounded first by BUFSIZE and then by the actual number of bytes avail) are read in from the ring buffer before writing them to STDOUT. I didn't see anything in the commit history and couldn't find any comments in the source code explaining why or if this is needed.

-JbR
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
https://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.