Can we call unbuffer automatically? #1465
Comments
+1 to simplifying this, but be careful - I seem to remember a bug with automagical buffering/unbuffering corrupting someone's device name because it happened to look like it was a hex string. @jrgm might remember more details. |
Yep, I think it was the browser version that got corrupted. This is was why I was careful only to mention |
I agree as well that auto buffering could lead to non-obvious bugs. An approach I used in oauth and profile servers was instead to use the buf module to ensure values that needed to be were converted to buffers at the db level. So, for instance |
@philbooth how do you want to proceed with this issue? |
I still have plans for this, don't close it yet! |
Thinking more on this, I feel stronger that maybe the best plan is to rip |
Also, I don't remember the details of this problem, but is it possible it would have been simpler to handle if auth-db-server did stricter validation and nicer error messages on its request payloads? |
Me and @shane-tomlinson were just looking into a problem that was caused by a failure to
unbuffer
some arguments before sending a request to the db server. Seems like it would be simple enough and less error prone to remove that burden and callunbuffer
automatically, in a little wrapper around poolee or something.The text was updated successfully, but these errors were encountered: