[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is it possible to change the recv buffer size dynamically for networ
From: |
Robert Pluim |
Subject: |
Re: Is it possible to change the recv buffer size dynamically for network process or subprocess? |
Date: |
Sun, 22 Mar 2020 16:12:31 +0100 |
>>>>> On Sun, 22 Mar 2020 09:26:37 +0800, HaiJun Zhang <address@hidden> said:
HaiJun> I want to do flow control, because too many data may cause UI
HaiJun> unresponsive. Set the recv buffer size to 4, and if I don’t fetch
the
HaiJun> four bytes, please don’t receive more data. If the size (In the four
HaiJun> bytes header) is too big, ask the user if the message should be
HaiJun> received.
I donʼt see how this is any different from just doing recv, checking
the 4 bytes, and then asking the user. In any case, if the remote end
has sent you the message, it will be in the local kernel buffers
anyway, so you'll have to read it at some point anyway.
Anyway, emacs-27 has read-process-output-max, which I guess you could
set to 4, but I suspect that will cause all sorts of other issues.
Robert
- Is it possible to change the recv buffer size dynamically for network process or subprocess?, HaiJun Zhang, 2020/03/20
- Re: Is it possible to change the recv buffer size dynamically for network process or subprocess?, Robert Pluim, 2020/03/21
- Re: Is it possible to change the recv buffer size dynamically for network process or subprocess?, HaiJun Zhang, 2020/03/21
- Re: Is it possible to change the recv buffer size dynamically for network process or subprocess?, Stefan Monnier, 2020/03/22
- Re: Is it possible to change the recv buffer size dynamically for network process or subprocess?, HaiJun Zhang, 2020/03/24
- Re: Is it possible to change the recv buffer size dynamically for network process or subprocess?, Eli Zaretskii, 2020/03/24
- Re: Is it possible to change the recv buffer size dynamically for network process or subprocess?, HaiJun Zhang, 2020/03/26
- Re: Is it possible to change the recv buffer size dynamically for network process or subprocess?, Eli Zaretskii, 2020/03/26
- Re: Is it possible to change the recv buffer size dynamically for network process or subprocess?, HaiJun Zhang, 2020/03/28
- Re: Is it possible to change the recv buffer size dynamically for network process or subprocess?, Eli Zaretskii, 2020/03/28
- Re: Is it possible to change the recv buffer size dynamically for network process or subprocess?, Richard Stallman, 2020/03/29