maximal user thread count.
Posted: 11 Sep 2013, 10:29
maybe there is already that option but I woul like to know how to set it next I will explain what I wan't to see.
NOW - user got internet lost, packets are collecting to user cache after internet going online all packets are send to server, after all packets have came to server, in order they come they start executing in paralel threads, I mean you have 50 messages and 50 threads, ater Smartfoxserver launches 50 threads for same user for same room for same extension for same function, why this is problem beacuse some times eaven, if (boolean == false) { boolean = true ...} starts executing same function beacuse thread 1 and thread 5 have allmoust same income objects and in the same time reaches if (boolean == false) then both threads goes in and happens bad things.
would be nice - you have number maybe in my case I would set it to 1 and when incomes 50 packets and have 50 threads it takes the setet number of threads, makes them busy and then 1 by 1 start executing income packets I mean, incomed packet 1 after it is done income packet 2, and so on while there would be no packets. something like tcp protocols where incoming packets comes to server in order they was sent not the random threading where thread with packet 10 can be faster than thread with packet 1 and could happen something bad. you may eaven just delay a bit, packet execution if user have already one. till that packet execution is done.
NOW - user got internet lost, packets are collecting to user cache after internet going online all packets are send to server, after all packets have came to server, in order they come they start executing in paralel threads, I mean you have 50 messages and 50 threads, ater Smartfoxserver launches 50 threads for same user for same room for same extension for same function, why this is problem beacuse some times eaven, if (boolean == false) { boolean = true ...} starts executing same function beacuse thread 1 and thread 5 have allmoust same income objects and in the same time reaches if (boolean == false) then both threads goes in and happens bad things.
would be nice - you have number maybe in my case I would set it to 1 and when incomes 50 packets and have 50 threads it takes the setet number of threads, makes them busy and then 1 by 1 start executing income packets I mean, incomed packet 1 after it is done income packet 2, and so on while there would be no packets. something like tcp protocols where incoming packets comes to server in order they was sent not the random threading where thread with packet 10 can be faster than thread with packet 1 and could happen something bad. you may eaven just delay a bit, packet execution if user have already one. till that packet execution is done.