User Control Panel
Advertisements

HELP US, HELP YOU!

Socket trouble?

 
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN.pm Development
View unanswered posts
Author Message
Mojave
Almost An Agent
Almost An Agent


Joined: 01 Nov 2003
Posts: 1434

Reputation: 66.4

PostPosted: Fri Feb 06, 2004 2:49 am    Post subject: Reply with quote

OK, talked with Keenie about this a bit already, but thought I'd post here to get a dialogue going.

Two things that are sort of bothering me that I'm not sure where the problem lies, whether it is MY computer (speed and/or Trillian), MY ISP, the MSN servers, MY bot code or a problem with MSN.pm.

1) The more users I get (and obviously the more messages), the slower my bot responds. This could be my machine. It's not blazingly fast, but it should be enough to run a couple perl bots just fine. MY ISP connection runs at about 1.2Mbits. The problem seems to happen with MSN Messenger and Trillian. The MSN servers are notoriously f'd up sometimes. My code could be the bottleneck. I'm looking into that.

2) After sending a message to my bot, it sometimes doesn't respond right away, but sending a message and then starting to type another generates an immediate response. It's like the socket isn't being read until somethine else comes in. This could all be related to problem #1 (my computer/connection or bot code), but Keenie said he sees this sometimes too. Wanted to bring this up here as a possible bug in the socket handling of MSN.pm.

So anyway, Eric, just wanted to get your ideas on this. Are you experiencing any of this? Keenie, how often does this happen to you? OR is it all me and my bot bod programming? haha
Back to top
eric256
The Keymaker
The Keymaker


Joined: 03 May 2006
Posts: 2292
Location: Colorado
Reputation: 47Reputation: 47Reputation: 47Reputation: 47Reputation: 47

PostPosted: Fri Feb 06, 2004 2:55 am    Post subject: Reply with quote

I've certainly seen the slow down with a relativly small amount of connections. I've also seen the problem where it doesn't respond until you start typing. Like the typing message keeps the socket alive, or something.

I'm pretty sure that the socket polling method is not the best way there is, then i bastardized it to work in a while loop situation. I'm pretty happy it works at all some days Smile

_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
Keenie
Almost An Agent
Almost An Agent


Joined: 31 Oct 2003
Posts: 1071

Reputation: 52.4

PostPosted: Fri Feb 06, 2004 2:58 am    Post subject: Reply with quote

well I never have problems with the first one, since we 2ghz, 100mb/s server, but when I run a bot locally it slows down pretty fast. But I'm assuming its because my computers incredibly slow.

The second one happens alot. I'm not sure why tho
Back to top
Mojave
Almost An Agent
Almost An Agent


Joined: 01 Nov 2003
Posts: 1434

Reputation: 66.4

PostPosted: Fri Feb 06, 2004 3:47 am    Post subject: Reply with quote

I have only dual 450Mhz but that should be waaaay more than enough. Looking at cpu and memory usage, there's barely a trickle of usage when my bots are running. In any case, it isn't the processing that is slow... as soon as it gets a message, it spits one back. The problem is getting the message in the first place, that's where my bottleneck occurs.

As for connection speed, my 1.2Mb should be plenty. Although, maybe being at an ISP with a huge pipe directly to MSN might help a lot. I don't know. Getting frustrated.

The 2nd problem, requiring a 2nd typing to get the message out seems serious and we all have it. Fixing it might resolve the first problem.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN.pm Development All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group