mleku on Nostr: bug has been blatted i noticed that the handler was reusing a buffer. oh. my marshal ...
bug has been blatted
i noticed that the handler was reusing a buffer. oh. my marshal code doesn't expect this reuse to happen this way, it doesn't copy any data to unmarshal
so, now, 100% working
it's pointlessly downloading everything from everywhere and not saving it lol
it literally was rugging itself
i'm glad this is sorted out now
little heads up if you ever deal with zero copy codecs don't forget, they are probably using the buffer the data came in on, like mine is, and setting the length back to zero and writing to it again is gonna be a race between the next message and the processing code
anyhow
bug: blatted
i noticed that the handler was reusing a buffer. oh. my marshal code doesn't expect this reuse to happen this way, it doesn't copy any data to unmarshal
so, now, 100% working
it's pointlessly downloading everything from everywhere and not saving it lol
it literally was rugging itself
i'm glad this is sorted out now
little heads up if you ever deal with zero copy codecs don't forget, they are probably using the buffer the data came in on, like mine is, and setting the length back to zero and writing to it again is gonna be a race between the next message and the processing code
anyhow
bug: blatted