This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

why crashes my bot?

Old posts that have not been replied to for several years.
Locked
l
loze

why crashes my bot?

Post by loze »

i know it is because i have a port open.. how can i change that? do i need to restart the bot every hour as i do now or can i fix it??
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Why does having a port open crash your bot?

If you *know* that is the reason, why don't you close the port?

No, you don't need to restart the bot every hour... plenty of people run eggdrops for a lot longer than that :)
l
loze

grr

Post by loze »

i need the port to be opened because it should recive information from a website.. and i want it to work without the restarts.. do yout know whats wrong?

Script:
set sock [socket -server runsock 3306]

proc runsock {sock address clientport} {
fconfigure $sock -blocking 0
fconfigure $sock -buffering none
fileevent $sock readable [list infohandler $sock]
}
proc infohandler {sock} {
global onairdj
if {[eof $sock]} {
putlog "Connection $sock closed"
close $sock
}
set info [read $sock]
foreach line [split $info "\n"] {

....... etc

the script works but after a while the bot crash..
Locked