Fabian Maurer dark.shadow4@web.de writes:
- /* We read the complete input at once, for simplicity */
This doesn't scale, and it's going to go badly if some app passes a lot of data. If it's really hard to process the entire input, then reading only a few bytes would be better that reading everything.