What term should I use to describe situations (or bugs in software) caused by read, write, send, recv doing less work than expected?
For example, write(fd, "123456", 6);
may return 3 and we need to write "456" to finish our work.
/* Still in doubt between "short write开发者_运维知识库/read" and "data truncation" after reading answers. */
It is called truncation:
http://en.wikipedia.org/wiki/Data_truncation
short write ....
I'm not sure it has a specific name. It has to do with buffering and channel availability. For example, when you send over a network there is some sort of a window which you can fill up completely, but if the previous data hasn't been completely sent yet, then right now you can only stream in enough to fill up this window.
精彩评论