obsdark
obsdark
CC#
Created by obsdark on 2/24/2023 in #help
❔ Problem of collections blocking when they shouldn't (BlockingCollection/ConcurrentQueue)
Hello there, I have a problem with the producer-consumer patron in an application in net 6 (console, c#) which is using now a couple of BlockingCollections but used to use ConcurrentQueues, for referring to them for now on i will only talk about collections The problem is than, when i use the method TalkTurn specifically, although both producer methods may still add elements to their respective collections with no problem, they stop process them for some reason, and none of this methods report anything like a crash or so, they are not restarted in StartTrade either and frankly i'm not certain on how to continue debbuging this issue anymore (so i hear suggestions in this one too). Be aware tho than this only is triggered with the interactions with l_ReceiveBigMessages collection specifically, for some reason, even tho both collections are feeded and produce by them own methods, they both stop producing after this. Any question, request of clarifications or possible solution will be very appreciated, i let a link with the relevant code in a nopaste Looking forward to reading you https://nopaste.linux-dev.org/?1338686
2 replies