POL097[FreeBSD] AUX connection bug

Report core bugs regarding the Ultima Online Emulator Core release (version 097). You can attach your Core Dump. One bug per post.
Locked
CrazyMan
Expert Poster
Posts: 71
Joined: Wed Apr 05, 2006 8:08 am

POL097[FreeBSD] AUX connection bug

Post 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...
Last edited by CrazyMan on Tue Feb 20, 2007 11:41 pm, edited 1 time in total.
Barbeirosa

Post by Barbeirosa »

Doesn't a "Connection Refused" usually mean the server actually isn't listening on that port at all?
CrazyMan
Expert Poster
Posts: 71
Joined: Wed Apr 05, 2006 8:08 am

Post 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
CrazyMan
Expert Poster
Posts: 71
Joined: Wed Apr 05, 2006 8:08 am

Post by CrazyMan »

Tested:
In FREEBSD dont work.
In Win32 - work.
CrazyMan
Expert Poster
Posts: 71
Joined: Wed Apr 05, 2006 8:08 am

Post 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
Locked