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
2
votes
2 answers

Node.js - Ensuring a non-blocking call finishes

I'm using the pg postgres node module to interact with my database. The code works without an issue when I use pg's evented API. Below is an example of the code: Migration.js exports.up = function(logger){ var pg = require("pg") ,…
JamesEggers
  • 12,885
  • 14
  • 59
  • 86
1
vote
0 answers

Can't get RS-232 flow control to work in C (Windows)

I am writing a program in C to communicate with an HP 7550 pen plotter over RS-232, and am having trouble getting flow control to work. When using a terminal program (such as TeraTerm) to send data to the plotter, XON/XOFF flow control works fine.…
1
vote
1 answer

Rate Control and Back Pressure in gRPC in Cpp

How can I implement rate control and back pressure in gRPC in cpp? I went through the documentation and found that there's something called a flow control limit that can help in signifying if the window size is full but I cannot find how to set…
Naman Shah
  • 35
  • 4
1
vote
3 answers

switch case: go to 'otherwise' from within another case

Is it possible to go from within a case in switch to another case based on a condition? Here is an example: flag_1 = 'a' flag_2 = 1; x = 0; switch flag_1 case 'a' if flag_2 == 1 % go to otherwise else x =…
Afaf
  • 59
  • 5
1
vote
3 answers

Error trying to loop through array of hashes in Perl

This has been asked before a couple of times, but none of those answers seem to work for my situation. My code: open(FILE, "<", $fileb) or die "File not openable: $!"; while () { $filebmeta[$line] = (data => $_, match => -1); …
Ash
  • 24,276
  • 34
  • 107
  • 152
1
vote
0 answers

RXTX serial port read bytes

I'm trying to send command and read from rs 232 with no flow control. Sending command is successful (checked by Serial port monitoring). but no answer. when I send the exact same command from Serial port monitoring software it answers. Dose any one…
1
vote
1 answer

rxjs: how to do conditional judgement in observable flow

In my Angular project, I came into one case as following: In the Frontend side I have a language system, user can choose one language from the options. And each time user choose a new language I need to invoke a server side method subscribe with…
Chris Bao
  • 2,418
  • 8
  • 35
  • 62
1
vote
3 answers

Boolean logical operators for flow controls in java

Can't we use Boolean logical operators (such as &,|,!,^ etc) in java flow controls ( for loop,while loop etc) ??? I want to print all even numbers between 1 and 100.So I used below two source codes. import java.util.*; class Example{ public…
Virangaa
  • 119
  • 7
1
vote
1 answer

Flow Control in HLSL

I recently read this paper about raymarching clouds (careful it´s an PDF, in case you dont want that: http://www.diva-portal.org/smash/get/diva2:1223894/FULLTEXT01.pdf) where the author goes on about optimizing (page 22ff.) the algorithm via…
foodius
  • 53
  • 1
  • 6
1
vote
2 answers

Is there any automatic version of flow control in Grpc-java?

My server can handle 10000qps, but when it comes 11000qps, it's overloading. That will cause a out of memory eventually. I'm wondering how grpc-java deal with server overloading. I've searched for a long time, no configurable version found…
Brutal_JL
  • 2,839
  • 2
  • 21
  • 27
1
vote
1 answer

Flow control limitting message rate on single queue

I have a exchange and only one queue bind to it. When the message publishing rate goes over some cap the rabbitmq automatically throttles the incoming message rate. On further investigation i found this happens due to the "Flow control" trottling…
Artandor
  • 472
  • 6
  • 20
1
vote
2 answers

How to use flow control to request the user inputs an integer as opposed to a string

My program asks a user for a number. I'm working with flow control to ensure that the user enters only a number, and if the user enters anything other than a number, the program prompts the user to "Please enter a number". Even when the user enters…
cwhitt91
  • 87
  • 6
1
vote
2 answers

Google PubSub: drop nacked message after n retries

Is there way to configure pull subscription in the way that messages which caused error and were nacked, were re-queued (and so that redelivered) no more than n times? Ideally on the last processing if it also failed I would like to handle this case…
Serge
  • 1,947
  • 3
  • 26
  • 48
1
vote
1 answer

Distributed crawling and rate limiting / flow control

I am running a niche search product that works with a web crawler. The current crawler is a single (PHP Laravel) worker crawling the urls and putting the results into an Elastic Search engine. The system continuously keeps re-crawling the found…
1
vote
0 answers

PCIe DMA using mem=XXX allocation slow down, flow control credit issue

I am trying to DMA from an FPGA into host PC (CentOS 6.9, 2.6.32 kernel) DDR4 memory using a descriptor bypass interface (no Scatter/Gather) and PCIe 3.0 x8. What I did is set aside 240GB of RAM using mem=16384MB boot parameter (256GB of total RAM).…
An H
  • 13
  • 3