B4J Question AsyncStreams closing socket not working

wl

Well-Known Member
Licensed User
Longtime User
Hi,

I have a ServerSocket running which works fine (using AsyncStreamsText in fact).
But as a precaution (DDOS attack) when more than X bytes is received I want to close the connection.

In the _NewText I do a AsyncStreamsText.Close in that case

But I notice this is not closing anything: the _NewText event keeps being called until the sender decides to finish ? I also tried to close the underlying socket or closing the serversocket. All the same effect, the event keeps being called...

What could be happening ?

Tx !
 

wl

Well-Known Member
Licensed User
Longtime User
Thanks Erel,

I meanwhile removed the code. I will add it again and upload it.
 
Upvote 0
Top