Hi,
I am having a big issue when I develop my server. Basically, server is listening on a fixed port from clients. I did some checking to discard those are not from my client. However, I got so many weird connection requests from an invalid socket. This will make our server couldn't do anything useful after running a while! All coming from one IP and they constantly requests to our server... this is for sure not sort of DoS attack.
To see why it's from invalid socket, I check the return value of accept() as:
For more info, I am using winsock2.h Anyone can point me any reasons why?
I am having a big issue when I develop my server. Basically, server is listening on a fixed port from clients. I did some checking to discard those are not from my client. However, I got so many weird connection requests from an invalid socket. This will make our server couldn't do anything useful after running a while! All coming from one IP and they constantly requests to our server... this is for sure not sort of DoS attack.
To see why it's from invalid socket, I check the return value of accept() as:
Code:
if( accept(ListenningSock,...) == INVALID_SOCKET) {
}
Comment