libvchan, why read random number of characters

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

libvchan, why read random number of characters

Jarvis Roach
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
[hidden email]
https://lists.xen.org/xen-users
Loading...