Closed benmerckx closed 8 years ago
Yeah, I'm afraid tink_io will just be one of those libs who's code will just drive its readers crazy. I hope to find the time soon to properly cover it with tests though. Correct weird code is already a step up from incorrect weird code.
This was a twofold issue, one by tink_io's buffer pooling that caused some data to be lost, one by some weirdness in Haxe that I worked around (accessing Worker.DEFAULT did not call the getter and caused the null-reference you got).
I've just submitted a new version that should fix both problems. Could you confirm that please?
This fixes it, thanks!
So I've been trying to get enough info from your code here to parse the body of a tink_http request to String. I kept getting nowhere and decided to test with foxhole itself and I'm running into the same issue. Running
Web.getPostData()
always throws:This happens somewhere in the pipeTo call, the handle is never reached. I've been going through tink_io but I'm not really sure how to debug this.