Raised This Month: $18 Target: $400
 4% 

Sockets makes crash


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Portugal
Old 01-14-2015 , 11:17   Sockets makes crash
Reply With Quote #1

As you probably know, sockets is making servers crash when using xredirect/aredirect (old verion)
I really want to fix my aredirect, the code is terrible but i was expectating to add this feature of show players online. Without this it is sort of get boring fixing it because there will be nothing new.

From my tests i believe what causes this crash is when 2 servers check each other at the same time.

Lets give an example. I have one server and ac-r has also one server.
I use sockets to check how many players are online at his server, and at the same time, he does the same for check how many players are at my server. With this, both servers crash. If you use sockets to check how many players are connected in your own server, it instantly crash.

If a new version of sockets is gonna be made for fixing this issue, please don't only put it into 1.8.3, also make a version compatible to 1.8.2 so i can provide dl link in the thread for people don't be forced to use a beta version of amxmodx.

Thanks.
__________________
Jhob94 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-14-2015 , 12:07   Re: Sockets makes crash
Reply With Quote #2

How do you know it's not because your code? Meaning you do something wrong.
Did you try to debug? Could you make a simple test plugin reproducing the issue?
__________________

Last edited by Arkshine; 01-14-2015 at 12:09.
Arkshine is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Portugal
Old 01-14-2015 , 12:23   Re: Sockets makes crash
Reply With Quote #3

I will try to do it if i have time tonight. If not, will do in weekend.
I believe it is not about how i do because it also happens with xredirect code.
__________________
Jhob94 is offline
insanedude
Member
Join Date: Mar 2009
Old 05-13-2015 , 02:20   Re: Sockets makes crash
Reply With Quote #4

Since xredirect is still crashing servers due to the sockets, was a fix ever made?
@Jhob94 - do you have any progress on your issue?
insanedude is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Portugal
Old 05-13-2015 , 09:11   Re: Sockets makes crash
Reply With Quote #5

Well, i forgot to make proper tests after this. But i still think this happens when sockets are used at same time. The server crashes if you try to get the values of it's server. But crashes too if you try to get info about some else server if that server is also trying to get info about your server at the same time.
__________________
Jhob94 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-13-2015 , 09:28   Re: Sockets makes crash
Reply With Quote #6

Quote:
Originally Posted by insanedude View Post
Since xredirect is still crashing servers due to the sockets, was a fix ever made?
XRedirect doesn't work anymore and is no longer supported in this community.
__________________
fysiks is offline
insanedude
Member
Join Date: Mar 2009
Old 05-13-2015 , 12:15   Re: Sockets makes crash
Reply With Quote #7

Quote:
Originally Posted by fysiks View Post
XRedirect doesn't work anymore and is no longer supported in this community.
True. However, I'd like for this functionality to work (either on xredirect or other plugin).
There's a workaround for the redirect part (for example, using a message in console and then kicking the player asking him to type connect IP).

Last edited by insanedude; 05-13-2015 at 12:15.
insanedude is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Portugal
Old 05-13-2015 , 15:26   Re: Sockets makes crash
Reply With Quote #8

I've to say, this issue really sucks. My Alternative Redirect code completly sucks, i was about to make it from 0, but then i lost my motivation because getting some server's information about players connected is something important in my opinion and this took off all my motivation to improve it.
__________________
Jhob94 is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 05-13-2015 , 18:25   Re: Sockets makes crash
Reply With Quote #9

Quote:
Originally Posted by Jhob94 View Post
I've to say, this issue really sucks. My Alternative Redirect code completly sucks, i was about to make it from 0, but then i lost my motivation because getting some server's information about players connected is something important in my opinion and this took off all my motivation to improve it.
I have a php page that show info from server using source query, you can try in a motd

Oh, and use steam:// protocol (steam://connect/)
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 05-14-2015 , 05:45   Re: Sockets makes crash
Reply With Quote #10

Talking of xREDIRECT, have you tried https://forums.alliedmods.net/showthread.php?t=142858 ?
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:43.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode