Skip to content

ConversationHandler is not thread safe #1029

@tsnoam

Description

@tsnoam

The following are initial findings, but it's a good place to start:

Members which need a mutex protecting them:

  • conversations
  • timeout_jobs

Members which should be removed. Instead check_update() should probably return a context to be passed to handle_updates():

  • current_conversation

  • current_handler

  • All other members must be set internal (i.e. renamed to be prefixed with __) so they won't be modified after __init__().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy