Questions tagged [flow-control]

Flow control is the process of managing the rate of data transmission between two nodes to prevent a fast sender from outrunning a slow receiver.

Flow control is the process of managing the rate of data transmission between two nodes to prevent a fast sender from outrunning a slow receiver. It provides a mechanism for the receiver to control the transmission speed, so that the receiving node is not overwhelmed with data from transmitting node.

166 questions
0
votes
2 answers

How to stop a thread group execution if the request from previous thread group fails in JMETER test plan?

In a JMeter test plan, I have 4 thread groups which will be executed consecutively, however there is a dependency of certain variables from one thread group to another and hence, in case of any sampler failure in previous thread group, the execution…
0
votes
1 answer

In the C program why am I getting an error of sample.c:(.text+0xb4): undefined reference to `pow

I am making a program C program that finds out whether a number is an Armstrong number or not. Here's the code: #include #include int main(){ int inp,count,d1,d2,rem; float arm; printf("the number: "); …
0
votes
1 answer

Is it possible for the receiver to decrement an HTTP/2 stream flow control window?

Section 6.9 of RFC 7540 describes the mechanism for HTTP/2 flow control. There is a flow control window for each connection, and another flow control window for all streams on that connection. It provides a way for the receiver to set the initial…
jacobsa
  • 5,719
  • 1
  • 28
  • 60
0
votes
1 answer

TCP: Why do we need flow control and congestion control

I've briefly read up on both flow control and congestion control and I cannot understand why we need them both and not just congestion control. Cannot we use just use congestion control and include the receiver as the last node? It seems to me that…
Pavel Skipenes
  • 342
  • 5
  • 14
0
votes
1 answer

HTTP/2 flow control in Node.js (grpc-js)

How is HTTP/2 flow control implemented in the Node.js version of gRPC (grpc-js)? For the Go implementation (grpc-go), the logic is mainly in https://github.com/grpc/grpc-go/blob/master/internal/transport/ (flowcontrol.go, bdp_estimator.go); also,…
Marius
  • 3
  • 1
0
votes
1 answer

Why are both branches in tf.cond being executed? And why does tf.while_loop finish the loop even though the condition still true?

I am using keras for a while now, but usually I don't have to use customized layers or perform some more complex flow control, so I'm struggling trying to understand somethings. I am modeling a neural network with a customized layer on the top. This…
0
votes
2 answers

How can I add new constraints to existing model in Cplex Script (flow control)?

In my heuristic algorithm I solve the model multiple times with different data and after each solve I need to add some new constraints to the existing model and solve again. I want to do this in Cplex Script (flow control).
MerveIb
  • 17
  • 3
0
votes
1 answer

Netty: Best way to create stateful, synchronous outbound pipeline?

Using Netty, I'm receiving multiple asynchronous messages from a framework on multiple threads. I need to send these messages to a network device (UDP) which uses a synchronous, stateful protocol. So, I need to use a state variable, and only allow…
tlum
  • 913
  • 3
  • 13
  • 30
0
votes
1 answer

Flow Control Pyserial

I am trying to control the flow of received data from a serial db9 RS232 and I am using the Pyserial. Normally I should receive 13 bytes data, but I want to be able to control my flow when the transmitter is sending more than 13 bytes. For this I…
0
votes
2 answers

js: stop calling next function if previous one failed

I have many functions, each of them will return an ok status, and I want to call them one by one, and stop calling the next one if the previous one returning falsy ok status. function func1() {} function func2() {} function func3() {} const ok1 =…
Littlee
  • 3,791
  • 6
  • 29
  • 61
0
votes
1 answer

How to get CRTSCTS defined in termios.h?

My machine has CRTSCTS #defined inside a #ifdef __USE_MISC which stops it being available to C programs which I compile. /usr/include/x86_64-linux-gnu/bits/termios.h: ... #define B4000000 0010017 #define __MAX_BAUD B4000000 #ifdef…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
0
votes
1 answer

confusion with python nested flow control

I have a flow control problem, I got some good advice earlier on a question and now need to make my simplified version closer to the actual problem. I have a while loop based on a count value. When my inner loop is running the count is incremented…
Windy71
  • 851
  • 1
  • 9
  • 30
0
votes
1 answer

Python flow control break out confusion

I am trying to understand a complicated flow control that I cannot get to work so have simplified it and don't understand its workings either. The simplified flow control is: smurf = True print('smurf status: ', smurf) jackets =…
Windy71
  • 851
  • 1
  • 9
  • 30
0
votes
0 answers

ActiveMQ getting blocked once memory is 100 % used

I have 2 queues setup in ActiveMQ broker. Wanted to test that producer flow control is working and producers for both queue are getting stalled when there is no memory. As soon as event occurs, messages start getting enqueued in both queues, but…
Saurabh Bhatia
  • 679
  • 2
  • 7
  • 11
0
votes
0 answers

Conditional return values – but with `yield from` instead of `return`

In Python, one frequently writes small functions with this kind of flow control: def get_iterstuff(source: Thingy, descr: Optional[str]) -> Iterable[Stuff]: """ Return an iterator of Stuff instances from a given Thingy """ key =…
fish2000
  • 4,289
  • 2
  • 37
  • 76