kyoto tycoon (kt) store uses not threadsafe httplib

Thomas Waldmann avatarThomas Waldmann created an issue

kt uses httplib and creates a connection when opening the store.

if the store is used by multiple threads, this could create issues as httplib is not threadsafe.

alternatives we have?

Comments (5)

  1. hacklab

    there are two options: either we can use some sort of thread local Http Connection; or use some thread safe library (additional dependencies...)

  2. Ronny Pfannschmidt

    2 major issues

    1. there is need for a connection pool or a lib that handles it (i would strongly suggest restkit, since its upcoming apis for dealing with normal sockets vs gevent vs eventlet is quite practical)
    2. there is need for thread-safe cursor id's (currently only cursor 0 is used and reset)
  3. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.