Page 1 of 1

POL097[FreeBSD] AUX connection bug

Posted: Tue Feb 20, 2007 3:01 pm
by CrazyMan
Script:

Code: Select all

------------
#cat auxsvc.cfg

AuxService
{
    Port 2003
    Script reg_aux
}

#cat reg_aux.src

use uo;
use os;
program Register(connection)
print("Started");
var ev;
print("Connection object:"+connection);

while(connection)
print("Start While:"+connection);
    ev := os::wait_for_event(60);
    print(ev);
endwhile
endprogram


When i connect to port 2003 ( telnet) POL reset connection

Code: Select all

telnet localhost 2003
Trying 127.0.0.1...
Connected to localhost
Escape character is '^]'.
Connection closed by foreign host.
I cant send any data.
Pol Immediately breaks connection

In console
Started
<AuxConnection>


Help pls. Fix faster...

Posted: Tue Feb 20, 2007 5:19 pm
by Barbeirosa
Doesn't a "Connection Refused" usually mean the server actually isn't listening on that port at all?

Posted: Tue Feb 20, 2007 11:38 pm
by CrazyMan
Port state is listening.
No firewall.
When i do connection in console show

Started
<AuxConnection>

Its not OS problem )

Need to fix this

Posted: Tue Feb 20, 2007 11:42 pm
by CrazyMan
Tested:
In FREEBSD dont work.
In Win32 - work.

Posted: Sun Feb 25, 2007 12:34 pm
by CrazyMan
Simply test:
use uo;
use os;


program socket(connection)
print(connection);

if(connection)
print("Connection return true");
else
print("Connection return false");
endif
print (connection.transmit("somestring"));
print("EndConnection:"+connection.errortext);
endprogram
when i try to connect
In console:
<AuxConnection>
Connection return false
error{ errortext = "Client has disconnected" }
EndConnection:error{ errortext = "Object does not support members" }
Firewall is off;
Any packetfilters is off;

Socket on listings:
[root@fodjer:/storage/ultima/pkg/kernel/socktest]$ sockstat | grep pol
root pol 49615 5 tcp4 *:2593 *:*
root pol 49615 8 tcp4 *:5003 *:*
root pol 49615 10 tcp4 *:5002 *:*
root pol 49615 11 tcp4 *:2003 *:*
root pol 49615 12 tcp4 *:2004 *:*
root pol 49615 13 tcp4 *:2005 *:*
root pol 49615 14 tcp4 *:2001 *:*
root pol 49615 15 tcp4 *:2222 *:*
Any other data need?
FreeBSD 6.1