We have some code to send metrics to a SOCK_DGRAM where another daemon listens and aggregates/proxies these messages. Opening the socket looks like: And at the moment we write to it like: I want to ensure the call above doesn’t block for very long (or at the very least doesn’t block indefinitely), but my understanding of unix sockets is not
Tag: haskell
The directory is being deleted too early
I’m trying to create a tar file from a directory’s contents using Codec.Archive.Tar, but I also want to clean up the directory once the tar file has been created. Here’s a small example which demonstrates my issue: When I call the function listFile e.g. from within ghci, I get back which I’m guessing is caused by the tar file being
Change key binding for autocomplete in haskell-vim-now
I have installed the Vim plugin haskell-vim-now in Ubuntu 14.04 LTS and in Xubuntu 14.04 LTS. After using the plugin in Ubuntu, I could use the autocompletion with Ctrl-space. However, when I installed it in Xubuntu, the Ctrl-space key would not work. The only way I made the autocompletion work was with the key Ctrl-@. I looked in the .vimrc