channels icon indicating copy to clipboard operation
channels copied to clipboard

InMemoryChannelLayer improvements, test fixes

Open devkral opened this issue 3 years ago • 1 comments

Improvements to InMemoryChannelLayer

  • honor expiry / don't block for eternity
  • honor per channel capacities
  • threadsafer cleaning design with atomic operations
  • parallel sending

Bugfixes tests

  • channel_layer is sometimes overwritten and the tests become bogus

devkral avatar Feb 09 '23 22:02 devkral

Note: I made an mistake with:

  • honor expiry / don't block for eternity This is the correct behavior for receive. But maybe the receive method it should be put in a loop, in case the queue is expired (see devkral/channels-multiprocessing for an example)

devkral avatar Feb 16 '23 08:02 devkral