GET_NEXT_LINE NOTES Stack might overflow for large BUFFER_SIZE, putting it on the heap would solve the problem, at cost of performance. Since timeout is likely an issue for moulinette, it would probably be the best solution.