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

[EXTENSION] Socket (3.0.1)


Post New Thread Reply   
 
Thread Tools Display Modes
sfPlayer
Senior Member
Join Date: Dec 2007
Location: Germany
Old 11-24-2008 , 18:31   Re: [EXTENSION] Socket (2.4.0beta+2.1)
Reply With Quote #71

implemented the workaround, new build attached

Last edited by psychonic; 03-05-2011 at 23:34. Reason: removed attachment due to source code not being available
sfPlayer is offline
StevoTVR
Senior Member
Join Date: Oct 2008
Old 11-24-2008 , 19:55   Re: [EXTENSION] Socket (2.4.0beta+2.1)
Reply With Quote #72

Awesome, that appears to be fixed! Will this be included in the main release?

Edit: This fix seems to have introduced a crash that locks up the server. It seems to be occuring when the plugin tries to create a second socket to deal with a redirect.

Last edited by StevoTVR; 11-24-2008 at 22:07.
StevoTVR is offline
sfPlayer
Senior Member
Join Date: Dec 2007
Location: Germany
Old 11-25-2008 , 06:08   Re: [EXTENSION] Socket (2.4.0beta+2.1)
Reply With Quote #73

Please add SocketSetOption(INVALID_HANDLE, DebugMode, 1); after OnPluginStart() and tell me the output.

I'll release a new stable version as soon as it's working well enough
sfPlayer is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 11-25-2008 , 12:26   Re: [EXTENSION] Socket (2.4.0beta+2.1)
Reply With Quote #74

Why when I use SocketDisconnect() plugin print to console "socket error 6 (errno 10038)"? It seems that all work fine but this error message is strange.
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
StevoTVR
Senior Member
Join Date: Oct 2008
Old 11-25-2008 , 13:05   Re: [EXTENSION] Socket (2.4.0beta+2.1)
Reply With Quote #75

Quote:
Originally Posted by sfPlayer View Post
Please add SocketSetOption(INVALID_HANDLE, DebugMode, 1); after OnPluginStart() and tell me the output.
Code:
L 11/25/2008 - 10:00:54: [SOCKET] [Debug] SocketCreate: Socket created (socket 0xa320f08) (handle 7995504)
L 11/25/2008 - 10:00:54: [SOCKET] [Debug] ConnectThread: connect() successful (socket 0xa320f08)
L 11/25/2008 - 10:00:54: [SOCKET] [Debug] Callbacks: executing connect callback 0xa16a378 (socket 0xa320f08) (handle 7995504)
L 11/25/2008 - 10:00:54: [SOCKET] [Debug] Callbacks: executed connect callback 0xa16a378
L 11/25/2008 - 10:00:54: [SOCKET] [Debug] SocketRecvThread: send[to]() successful, sent 95 bytes (socket 0xa320f08)
L 11/25/2008 - 10:00:54: [SOCKET] [Debug] SocketRecvThread: sendqueue empty (socket 0xa320f08)
L 11/25/2008 - 10:00:54: [SOCKET] [Debug] SocketRecvThread: recv() successful, received 330 bytes (socket 0xa320f08)
L 11/25/2008 - 10:00:54: [SOCKET] [Debug] SocketRecvThread: recv() signalled disconnect, aborting (socket 0xa320f08)
L 11/25/2008 - 10:00:54: [SOCKET] [Debug] Socket closed (socket 0xa320f08)
L 11/25/2008 - 10:00:54: [SOCKET] [Debug] Callbacks: executing receive callback 0xa193dc8 (socket 0xa320f08) (handle 7995504)
L 11/25/2008 - 10:00:54: [SOCKET] [Debug] Callbacks: executed receive callback 0xa193dc8
L 11/25/2008 - 10:00:54: [SOCKET] [Debug] Callbacks: executing disconnect callback 0xa16a418 (socket 0xa320f08) (handle 7995504)
L 11/25/2008 - 10:00:54: [SOCKET] [Debug] OnHandleDestroy: run destruction thread (socket 0xa320f08)
That's where it locks up. Hope that helps.
StevoTVR is offline
sfPlayer
Senior Member
Join Date: Dec 2007
Location: Germany
Old 11-26-2008 , 16:31   Re: [EXTENSION] Socket (2.4.0beta+2.1)
Reply With Quote #76

new build (fixed listening stuff, probabably fixed stevo's crash)

Last edited by psychonic; 03-05-2011 at 23:35. Reason: removed attachment due to source code not being available
sfPlayer is offline
sfPlayer
Senior Member
Join Date: Dec 2007
Location: Germany
Old 11-26-2008 , 16:44   Re: [EXTENSION] Socket (2.4.0beta+2.1)
Reply With Quote #77

Quote:
Originally Posted by exvel View Post
Why when I use SocketDisconnect() plugin print to console "socket error 6 (errno 1003"? It seems that all work fine but this error message is strange.
this may be a race condition, please give me more information about the plugin you are trying to write/run.
sfPlayer is offline
StevoTVR
Senior Member
Join Date: Oct 2008
Old 11-26-2008 , 17:20   Re: [EXTENSION] Socket (2.4.0beta+2.1)
Reply With Quote #78

Quote:
Originally Posted by sfPlayer View Post
new build (fixed listening stuff, probabably fixed stevo's crash)
That seems to have fixed the crashing.
StevoTVR is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 11-27-2008 , 14:51   Re: [EXTENSION] Socket (2.4.0beta+2.1)
Reply With Quote #79

Quote:
Originally Posted by sfPlayer View Post
this may be a race condition, please give me more information about the plugin you are trying to write/run.
I am trying to download a file, on each OnSocketReceive() plugin search a phrase inside recived text and if phrase found it stops transfer. I use SocketDisconnect() for this.

Code:
L 11/27/2008 - 22:46:40: [SOCKET] [Debug] SocketCreate: Socket created (socket 10562390) (handle 14614744)
L 11/27/2008 - 22:46:40: [SOCKET] [Debug] ConnectThread: connect() successful (socket 10562390)
L 11/27/2008 - 22:46:40: [SOCKET] [Debug] Callbacks: executing connect callback 10562410 (socket 10562390) (handle 14614744)
L 11/27/2008 - 22:46:40: [SOCKET] [Debug] Callbacks: executed connect callback 10562410
L 11/27/2008 - 22:46:40: [SOCKET] [Debug] SocketRecvThread: send[to]() successful, sent 89 bytes (socket 10562390)
L 11/27/2008 - 22:46:40: [SOCKET] [Debug] SocketRecvThread: sendqueue empty (socket 10562390)
L 11/27/2008 - 22:46:41: [SOCKET] [Debug] SocketRecvThread: recv() successful, received 1460 bytes (socket 10562390)
L 11/27/2008 - 22:46:41: [SOCKET] [Debug] Callbacks: executing receive callback 10562410 (socket 10562390) (handle 14614744)
L 11/27/2008 - 22:46:41: [SOCKET] [Debug] Callbacks: executed receive callback 10562410
L 11/27/2008 - 22:46:41: [SOCKET] [Debug] SocketRecvThread: recv() successful, received 2048 bytes (socket 10562390)
L 11/27/2008 - 22:46:41: [SOCKET] [Debug] SocketRecvThread: recv() successful, received 4095 bytes (socket 10562390)
L 11/27/2008 - 22:46:41: [SOCKET] [Debug] SocketRecvThread: recv() successful, received 1157 bytes (socket 10562390)
L 11/27/2008 - 22:46:41: [SOCKET] [Debug] Callbacks: executing receive callback 10562410 (socket 10562390) (handle 14614744)
L 11/27/2008 - 22:46:41: [SOCKET] [Debug] Callbacks: executed receive callback 10562410
L 11/27/2008 - 22:46:41: [SOCKET] [Debug] Callbacks: executing receive callback 10565C18 (socket 10562390) (handle 14614744)
L 11/27/2008 - 22:46:41: [SOCKET] [Debug] Callbacks: executed receive callback 10565C18
L 11/27/2008 - 22:46:41: [SOCKET] [Debug] Callbacks: executing receive callback 105660C8 (socket 10562390) (handle 14614744)
L 11/27/2008 - 22:46:41: [SOCKET] [Debug] Callbacks: executed receive callback 105660C8
L 11/27/2008 - 22:46:42: [SOCKET] [Debug] SocketRecvThread: recv() successful, received 1460 bytes (socket 10562390)
L 11/27/2008 - 22:46:42: [SOCKET] [Debug] Callbacks: executing receive callback 105660C8 (socket 10562390) (handle 14614744)
L 11/27/2008 - 22:46:42: [SOCKET] [Debug] Callbacks: executed receive callback 105660C8
L 11/27/2008 - 22:46:42: [SOCKET] [Debug] SocketRecvThread: recv() successful, received 1460 bytes (socket 10562390)
L 11/27/2008 - 22:46:42: [SOCKET] [Debug] SocketRecvThread: recv() successful, received 4095 bytes (socket 10562390)
L 11/27/2008 - 22:46:42: [SOCKET] [Debug] SocketRecvThread: recv() successful, received 1745 bytes (socket 10562390)
L 11/27/2008 - 22:46:42: [SOCKET] [Debug] Callbacks: executing receive callback 105660C8 (socket 10562390) (handle 14614744)
L 11/27/2008 - 22:46:42: [SOCKET] [Debug] Callbacks: executed receive callback 105660C8
L 11/27/2008 - 22:46:42: [SOCKET] [Debug] Callbacks: executing receive callback 10565C18 (socket 10562390) (handle 14614744)
L 11/27/2008 - 22:46:42: [SOCKET] [Debug] Callbacks: executed receive callback 10565C18
L 11/27/2008 - 22:46:42: [SOCKET] [Debug] Callbacks: executing receive callback 10562410 (socket 10562390) (handle 14614744)
L 11/27/2008 - 22:46:42: [SOCKET] [Debug] Callbacks: executed receive callback 10562410
L 11/27/2008 - 22:46:42: [SOCKET] [Debug] SocketRecvThread: recv() successful, received 2048 bytes (socket 10562390)
L 11/27/2008 - 22:46:42: [SOCKET] [Debug] SocketRecvThread: recv() successful, received 872 bytes (socket 10562390)
L 11/27/2008 - 22:46:42: [SOCKET] [Debug] Callbacks: executing receive callback 10562410 (socket 10562390) (handle 14614744)
L 11/27/2008 - 22:46:42: [SOCKET] [Debug] SocketRecvThread: recv() failed unexpectedly, aborting (socket 10562390) (errno 10038)
L 11/27/2008 - 22:46:42: [SOCKET] [Debug] Socket closed (socket 10562390)
L 11/27/2008 - 22:46:42: [SOCKET] [Debug] Callbacks: executed receive callback 10562410
L 11/27/2008 - 22:46:42: [SOCKET] [Debug] Callbacks: executing receive callback 10565C18 (socket 10562390) (handle 14614744)
L 11/27/2008 - 22:46:42: [SOCKET] [Debug] Callbacks: executed receive callback 10565C18
L 11/27/2008 - 22:46:42: [SOCKET] [Debug] Callbacks: executing error callback 105660C8 (socket 10562390) (handle 14614744)
L 11/27/2008 - 22:46:42: [updatenews.smx] socket error 6 (errno 183)
L 11/27/2008 - 22:46:42: [SOCKET] [Debug] OnHandleDestroy: run destruction thread (socket 10562390)
L 11/27/2008 - 22:46:42: [SOCKET] [Debug] Callbacks: executed error callback 105660C8
L 11/27/2008 - 22:46:42: [SOCKET] [Debug] HandleDestructionThread: Socket destroyed (socket 10562390)
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
sfPlayer
Senior Member
Join Date: Dec 2007
Location: Germany
Old 11-27-2008 , 17:50   Re: [EXTENSION] Socket (2.4.0beta+2.1)
Reply With Quote #80

I think I've got a fix, but I won't be able to create a new Windows build before tomorrow afternoon.
sfPlayer 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 12:42.


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