root [Sun, 21 Dec 2008 22:21:22 +0000 (01:21 +0300)]
Implement write buffering for the ptys
If the receiving side of the pty is slow, the kernel pty buffer (of 4096
bytes) overflows and an unreported lossage occurs. This can be seen when
receiving a large SIM phonebook with busy frameworkd.
Paul Fertser [Thu, 4 Dec 2008 17:27:39 +0000 (20:27 +0300)]
Fixed a bug with a 2048-sized transfer from modem
As the circular buffer is used to hold the incoming data from the modem,
its free size must be one byte less than is actually available or we'll get
readp == writep and the buffer will be considered empty.