{"action":"created","issue":{"url":"https://api.github.com/repos/informatikr/hedis/issues/23","repository_url":"https://api.github.com/repos/informatikr/hedis","labels_url":"https://api.github.com/repos/informatikr/hedis/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/informatikr/hedis/issues/23/comments","events_url":"https://api.github.com/repos/informatikr/hedis/issues/23/events","html_url":"https://github.com/informatikr/hedis/issues/23","id":51929857,"number":23,"title":"Connection pool doesn't like blocking commands?","user":{"login":"cactorium","id":1513183,"avatar_url":"https://avatars.githubusercontent.com/u/1513183?v=3","gravatar_id":"","url":"https://api.github.com/users/cactorium","html_url":"https://github.com/cactorium","followers_url":"https://api.github.com/users/cactorium/followers","following_url":"https://api.github.com/users/cactorium/following{/other_user}","gists_url":"https://api.github.com/users/cactorium/gists{/gist_id}","starred_url":"https://api.github.com/users/cactorium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cactorium/subscriptions","organizations_url":"https://api.github.com/users/cactorium/orgs","repos_url":"https://api.github.com/users/cactorium/repos","events_url":"https://api.github.com/users/cactorium/events{/privacy}","received_events_url":"https://api.github.com/users/cactorium/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2014-12-14T20:04:37Z","updated_at":"2016-02-24T15:30:46Z","closed_at":"2016-02-24T15:30:46Z","body":"```\r\n{-# LANGUAGE OverloadedStrings #-}\r\nimport Control.Concurrent\r\nimport qualified Data.ByteString.Char8 as B\r\nimport Database.Redis\r\n\r\nmain :: IO ()\r\nmain = do\r\n    conn <- connect defaultConnectInfo { connectMaxConnections = 1024 }\r\n    forkIO $ do \r\n        threadDelay 100000\r\n        runRedis conn $ lpush \"locktest\" [\"0\"]\r\n        return ()\r\n    bar <- runRedis conn $ blpop [\"locktest\"] 0\r\n    case bar of\r\n        Left foobar -> putStrLn \"Test!\"\r\n        Right barfoo -> putStrLn \"Potato!\"\r\n```\r\n\r\nThe program hangs, although it doesn't for smaller values in threadDelay. I was assuming the behavior would be for it to pause 0.1 seconds for the LPUSH and then print out \"Potato!\" after the BLPUSH unblocks. Is this intended behavior? "},"comment":{"url":"https://api.github.com/repos/informatikr/hedis/issues/comments/188306352","html_url":"https://github.com/informatikr/hedis/issues/23#issuecomment-188306352","issue_url":"https://api.github.com/repos/informatikr/hedis/issues/23","id":188306352,"user":{"login":"k-bx","id":107968,"avatar_url":"https://avatars.githubusercontent.com/u/107968?v=3","gravatar_id":"","url":"https://api.github.com/users/k-bx","html_url":"https://github.com/k-bx","followers_url":"https://api.github.com/users/k-bx/followers","following_url":"https://api.github.com/users/k-bx/following{/other_user}","gists_url":"https://api.github.com/users/k-bx/gists{/gist_id}","starred_url":"https://api.github.com/users/k-bx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-bx/subscriptions","organizations_url":"https://api.github.com/users/k-bx/orgs","repos_url":"https://api.github.com/users/k-bx/repos","events_url":"https://api.github.com/users/k-bx/events{/privacy}","received_events_url":"https://api.github.com/users/k-bx/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T15:30:46Z","updated_at":"2016-02-24T15:30:46Z","body":"Fixed by PR #45 "}}