Socket Plugin Crashing Server
#1

Код:
Hello,

I have this weird problem with Sockets plugin [https://sampforum.blast.hk/showthread.php?tid=333934]

When I call socket_remote_client_connected on connected id my server crashes - every time.
I checked with CrashDetect plugin it says that socket_remote_client_connected caused server to crash.

If anyone has any help, please provide some :)

Thanks in advance.
I solved it, its bug with plugin, in file CSocket.cpp on line 286 condition is wrong

Код:
if(m_pSocketInfo[socketid].ssl) {
	if(recv(m_pSocketInfo[socketid].connected_clients[remote_clientid], tempbuf, sizeof(tempbuf), NULL) != 0)
		return 1;
}
should be

Код:
if(false == m_pSocketInfo[socketid].ssl) {
	if(recv(m_pSocketInfo[socketid].connected_clients[remote_clientid], tempbuf, sizeof(tempbuf), NULL) != 0)
		return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)