Support #558

bridge overload

Added by Madars over 1 year ago. Updated about 1 year ago.

Status:ClosedStart date:06/11/2020
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:-
Target version:-

Description

- 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.
}

}

History

#1 Updated by Madars over 1 year ago

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

7.5+

#2 Updated by Madars about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF