Support #558

bridge overload

Added by Madars almost 4 years ago. Updated over 3 years ago.

Status:ClosedStart date:06/11/2020
Priority:Normal (Code 4)Due date:
Assignee:-% Done:


Target version:-


- to avoid excessive bridge memory usage, we shall limit the amount of msgs sent in case of socket full, while we shall allow messages to be received.

Thus do following in b4 poll:

/1. /wait_for_one_free_incoming_thread()

//2. Protect us from overload -> in case if socket is full
while sending_thread_pool there all threads are busy {
poll on socket connection (IN, OUT)

if (we got IN && !OUT) {
receive_msg(); //this will avoid the dead lock, as on the other end sockets might finally flush. if both ends works in the same way.
else if (we got IN && OUT) {
//here just continue the loop, as in this case thread pool shall be reduced once msg is sent.



#1 Updated by Madars almost 4 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100


#2 Updated by Madars over 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF