Or use chunked encoding - https://github.com/edicl/chunga
Am Do., 18. Dez. 2025 um 09:16 Uhr schrieb Josh Betts < [email protected]>: > 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 > >
