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
16
votes
4 answers

How do you add a promise to the flow control queue using protractor?

In my test I am calling and outside library to seed data into our backend before running some ui tests using protractor. 'use strict' var dataBuilder = require('data_builder.js'); describe('test', function () { var testData = { name: 'foo', …
C Deuter
  • 893
  • 1
  • 8
  • 14
14
votes
1 answer

difference between sliding window and congestion window

What is the difference and connection between sliding window in flow control and congestion window in congestion control? I think both are the control size for transmitting, but what are the difference? I do not quite get the difference between flow…
Haowen Cao
  • 145
  • 1
  • 5
10
votes
1 answer

Configure minicom to use hardware flow control

Looking for some assistance testing a UART implementation with hardware flow contorl for the OMAP L138. To test the implementation I use minicom to emulate the other end of the serial link and I'm looking for some insight into how it needs to be…
dinesh
  • 765
  • 2
  • 9
  • 21
8
votes
0 answers

Infinite flux and bulk-write to database

I have an infinite Flux (from kafka using reactor-kafka) of events that I'm trying to write in batches to a database, before continuing to the actual event processing. My issue is to get this to work with proper backpressure. windowTimeout and…
dforsl
  • 203
  • 1
  • 3
  • 11
7
votes
2 answers

What is the purpose of redo and retry statements in Ruby?

The only use case I can think of for redo would be for operations like writing to a socket or reading from a database, but if these fail once, subsequent attempts will most likely also fail so it still seems a bit pointless to me and as for retry I…
Llamageddon
  • 3,306
  • 4
  • 25
  • 44
6
votes
2 answers

How do I create a memory bound message queue in Erlang?

I want the speed of asynchronous messages but still have some flow control. How can I accomplish this in Erlang?
Eric des Courtis
  • 5,135
  • 6
  • 24
  • 37
5
votes
0 answers

rabbitmq flow control logging

We have low-latency application (messages need to be processed in less than 200ms). There are periods of time when messages are not delivered for a few seconds. I would like to detect if there was rabbitmq flow control mechanism applied in this…
5
votes
0 answers

Linux UART (16550A) RS485 mode

I'm trying to configure my serial port (/dev/ttyS0) to automatically control RTS pin. I already can do it from user space by ioctl TIOCM_RTS flag toggling but it's too slow in my case - slave device respond too fast and I miss it. I tried to achieve…
KPR
  • 101
  • 8
5
votes
1 answer

WebRTC DataChannel flow/control/back-pressure

The RTCDataChannel API does not provide any kind of flow/control or back-pressure, does this mean, that a sender could, theoretically, crash the browser of the receiver ? In my opinion the browser, (Chrome, Firefox, etc. all use SCTP under the…
Kr0e
  • 2,149
  • 2
  • 24
  • 40
5
votes
1 answer

How do I use boost::asio::serial_port support for hardware flow control?

I'm talking to a virtual serial port (an FTDI chip) using Boost's asio::serial_port library. I'd like to use hardware flow control (i.e. RTS/CTS), but I can't seem to find much documentation on how to use it with Boost. The code I've got…
4
votes
0 answers

If statement without a body

I wish to use || statements to stop execution flow once any of my functions returns a non-zero error code. However, if I use "bare" logical statements, as in void function myFun(void) { struct myStruct *test = malloc(sizeof(struct myStruct)); …
GingerBadger
  • 312
  • 3
  • 12
4
votes
1 answer

Application-level back-pressure VS TCP native flow-control

I am investigating why some systems implement application-level back-pressure given that TCP provides native flow control. I was reading, in particular, akka-streams and (an higher level discussion) reactive streams. Is it only to abstract out the…
affo
  • 453
  • 3
  • 15
4
votes
1 answer

Does the C# Implementation of gRPC have streaming back-pressure?

I have a gRPC service that accepts streaming messages from a client. The client sends a finite sequence messages to the server at a high rate. The result is the server buffering a large number of messages (> 1GB) and it's memory usage skyrocketing…
4
votes
4 answers

Proper getting of an object property in Javascript

I'm working in a large Javascript codebase at the moment littered with code resorting to Exceptions for flow control function getChecklistUrl() { try { return dataLayerObject.config.checklist; } catch (e) { try { …
quickshiftin
  • 66,362
  • 10
  • 68
  • 89
4
votes
2 answers

Linux command to send binary file to serial port with HW flow control?

I need to send binary file to rs232 device (printer) which not always can accept data and so it has BUSY output signal, which i connect to CTS pin. I try to use it with minicom, and hardware flow control works just fine. But i can't send raw file…
user2223633
  • 151
  • 1
  • 1
  • 10
1
2 3
11 12