How is it called when a write or read is returned less than requested?

Which term should be used to describe situations (or software errors) caused by reading, writing, sending, recv doing less work than expected?

For example, it write(fd, "123456", 6);may return 3, and we need to write "456" to complete our work.

/ * Still doubting "short write / read" and "truncate data" after reading answers. * /

+3
source share
3 answers

short record ....

+1
source
+3
source

I'm not sure he has a specific name. This is due to buffering and channel availability. For example, when you send over the network, there is some kind of window that you can fill out completely, but if the previous data has not been completely sent, then right now you can use only a stream sufficient to fill this window.

0
source

Source: https://habr.com/ru/post/1747744/


All Articles