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..