Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc/Example.hs hangs on 'close pipe' #23

Open
nurpax opened this issue Apr 30, 2012 · 0 comments
Open

doc/Example.hs hangs on 'close pipe' #23

nurpax opened this issue Apr 30, 2012 · 0 comments

Comments

@nurpax
Copy link

nurpax commented Apr 30, 2012

doc/Example.hs hangs on Windows when running with MongoDB v2.0.4 (64-bit version). My Haskell is from the Haskell Platform, GHC version 7.0.3.

Basically this part:

main = do
    pipe <- runIOE $ connect (host "127.0.0.1")
    e <- access pipe master "baseball" run
    close pipe
    print e

hangs at the end of main. I run it like this:

runhaskell Example.hs

I'm not which part actually hangs. If I move "print e" above "close pipe" and insert logging prints between, it seems that "print e" completes, I get the full print out and execution hangs on "close pipe".

If I completely remove "close pipe", main exits without a hang.

The odd thing is that if I compile Example.hs with ghc and run the output Example.exe, there's no hang.

I'd be happy to help you guys debug this -- it'd be awesome to be able to use mongoDB on both Linux and Windows without issues.

I got the same hang also in structured-mongoDB examples. Ran them on Linux earlier today and didn't encounter any hangs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant