Hi,

Yes probably.

Or as others have said encode the length at the start and then use read-sequence with :start and :end. If you are worried about a DOS you could come up with some solution to blacklist bad actors on your end, or use whitelists etc.

Regards,

Josh.

On 17/12/2025 15:01, Marco Antoniotti wrote:
Hi

I am reading from a uosocket:stream-usocket. My sequence is 100 octets long, but I know the other party is sending UP TO 100 octets.

If the other party sends less than 100 octets, read-sequence/usocket-stream (at least the version on LW) hangs.

Should I just do a loop, checking for the "end marker"?

Thanks

All the best

--
Marco Antoniotti

Attachment: OpenPGP_0x3015025712B44C08.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to