philopon / helics

New Relic® agent SDK wrapper for Haskell
MIT License
13 stars 6 forks source link

File descriptors exhaustion #1

Closed iand675 closed 9 years ago

iand675 commented 9 years ago

Hi,

In the getPages function, you're not closing the file descriptor after reading the data. In a loop, this causes the file descriptors to be exhausted: https://github.com/philopon/helics/blob/master/src/Network/Helics/Foreign/System.hsc

philopon commented 9 years ago

Oops! I mistook! thanks for your report! I'll fix it soon.