exanic-software icon indicating copy to clipboard operation
exanic-software copied to clipboard

this will stuck when i accept 29127times

Open publig opened this issue 5 years ago • 5 comments

https://github.com/exablaze-oss/exanic-software/blob/9b1f69cfa252402cd1f0dbe9ba4115ed51d0ae7a/modules/exasock/exasock-tcp.c#L2586

publig avatar Dec 01 '20 05:12 publig

the offs + sizeof(struct exa_tcp_new_connection) will be large than RX_BUFFER_SIZE and the rx_lock will dead lock https://github.com/exablaze-oss/exanic-software/blob/9b1f69cfa252402cd1f0dbe9ba4115ed51d0ae7a/modules/exasock/exasock-tcp.c#L2589

publig avatar Dec 01 '20 05:12 publig

I have used the Epoll frame in the server when I found this, and my client is like this:

server_msg=(addr, port)
while True:
  client_sock = socket.socket()
  client_sock.connect(server_msg)
  client_sock.close()

publig avatar Dec 01 '20 05:12 publig

I run the exasock at the server , and the version is 2.4.1

publig avatar Dec 01 '20 05:12 publig

this is so confusing to me

publig avatar Dec 01 '20 05:12 publig

How can I defense this attack

publig avatar Dec 02 '20 06:12 publig