Support #558
bridge overload
Status: | Closed | Start date: | 06/11/2020 | |
---|---|---|---|---|
Priority: | Normal (Code 4) | Due 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 3 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
7.5+
#2 Updated by Madars about 3 years ago
- Status changed from Resolved to Closed