Raised This Month: $51 Target: $400
 12% 

[EXTENSION] Socket (3.0.1)


Post New Thread Reply   
 
Thread Tools Display Modes
ltgenkd
AlliedModders Donor
Join Date: Sep 2008
Old 07-02-2014 , 14:28   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #451

Sever will not start with this extension. Insurgency2.
As soon as I remove the extension, server starts.
ltgenkd is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 07-03-2014 , 11:33   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #452

PHP Code:
public OnPluginStart() {
    new 
Handle:socket SocketCreate(SOCKET_TCPOnSocketError);
    new 
Handle:hFile OpenFile("dl.mp3""wb");
    
SocketSetArg(sockethFile);
    
SocketConnect(socketOnSocketConnectedOnSocketReceiveOnSocketDisconnected"bbcwssc.ic.llnwd.net"80)
}
public 
OnSocketConnected(Handle:socketany:arg) {
    
decl String:requestStr[100];
    
Format(requestStrsizeof(requestStr), "GET /%s HTTP/1.0\r\nHost: %s\r\nConnection: close\r\n\r\n""stream/bbcwssc_mp1_ws-eieuk""bbcwssc.ic.llnwd.net");
    
SocketSend(socketrequestStr);
}
public 
OnSocketReceive(Handle:socketString:receiveData[], const dataSizeany:hFile) {
    
WriteFileString(hFilereceiveDatafalse);

I've got 2 problems:
1) downloaded file (piece of file) is always broken. I remove http header, and MPC and any other mp3-player does not want to play the file. If I download this file through Opera (piece of file, ~100kb), MPC can always play this file.
2) Download speed is very low (0.01 kb/s) about 1000 times slower then Opera
Wondows 7

Last edited by kadet.89; 07-03-2014 at 11:36.
kadet.89 is offline
Send a message via Skype™ to kadet.89
L33TGaming
Senior Member
Join Date: Jun 2014
Old 07-08-2014 , 20:01   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #453

This extension I causing my server to repeatedly but randomly hang. Can someone please help and fix this?
L33TGaming is offline
Nefarius
Member
Join Date: Sep 2010
Old 07-09-2014 , 11:12   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #454

For any extension developer interested; since the original repository can't be cloned anymore, I uploaded the latest working revision to Github for anyone to fork, fix or download. Credits to original author of course.
__________________
Let the future tell the truth and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I really worked, is mine.
- Nikola Tesla
Nefarius is offline
ltgenkd
AlliedModders Donor
Join Date: Sep 2008
Old 07-31-2014 , 14:47   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #455

I run 3 Insurgency2 servers, 2 from a home server set-up and 1 rented server.
I use this extension for Vac Status Checker plugin.
This extension and the Vac Status Checker on the 2 home servers runs fine no problems.
When I use this extension on the 32 slot rental server, the server will NOT start. When I remove this extension the server starts no problem.
All 3 server run Windows OS.

Could it be a firewall issue on the rented server?
Any thoughts on why this happens?

Thanks
ltgenkd is offline
ltgenkd
AlliedModders Donor
Join Date: Sep 2008
Old 08-08-2014 , 11:12   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #456

Still having this problem^^^^can't figure this out.

Any suggestions?
__________________
ltgenkd is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 08-14-2014 , 21:47   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #457

stop using this extension, there were so many bug !
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 08-15-2014 , 04:47   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #458

Are there any alternatives?
kadet.89 is offline
Send a message via Skype™ to kadet.89
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 08-15-2014 , 09:44   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #459

Quote:
Originally Posted by kadet.89 View Post
Are there any alternatives?
I switched to cURL extension and it's working fine. But you have to be sure that none of your plugins require Sockets especially.

++
__________________

*** *** ***
-My plugins-
St00ne is offline
poel
Veteran Member
Join Date: Mar 2013
Old 09-09-2014 , 07:52   Re: [EXTENSION] Socket (3.0.1)
Reply With Quote #460

Hi,

I have this on my console server :

Socket process : Too many open files....

My server is "block/freeze" No one can join it, I have to reboot it.


How fix it ?
poel is offline
Reply



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 02:30.


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