From: Jason T. <ta...@sa...> - 2005-10-31 17:45:43
|
On Mon, 2005-10-31 at 18:11 +0100, Dirk Meyer wrote: > Server wants to send 200k data. But it can only send 100k until the > socket would block. OK, no problem, return to main and wait until > select tells us that we can write again. The client gets the data, > this results in a select notification that the client can read > data. It reads the 100k. BUT now the server does not receive the > message that 100k are read and that the server can send again. This > happens after 2 seconds both sides doing nothing. I have no idea why. But if the server can only send 100k, send() should return this figure. So the next time it writes, it will be the next 100k of data. This is how it works for me. I just tested it, and it's sending in roughly 100k chunks. (Actually the first chunk is 112896 bytes, and subsequent chunks are 96768 bytes.) > No, you can send 100k without problem. I've sent very large amounts of data over ipc before. In fact, see the attached demo that sends 2.5MB over ipc without any troubles. (Tested both with unix and tcp sockets.) So I'll need some help reproducing the problem. Jason. |