PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
POL097[FreeBSD] AUX connection bug

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Bug Reports 097
Display posts from previous:   

Author Message
CrazyMan



Joined: 05 Apr 2006
Posts: 54

PostPosted: Tue Feb 20, 2007 7:01 pm    Post subject: POL097[FreeBSD] AUX connection bug Reply with quote

Script:
Code:

------------
#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:
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 Wed Feb 21, 2007 3:41 am; edited 1 time in total

Author Message
Barbeirosa



Joined: 01 Feb 2007
Posts: 43

PostPosted: Tue Feb 20, 2007 9:19 pm    Post subject: Reply with quote

Doesn't a "Connection Refused" usually mean the server actually isn't listening on that port at all?

Author Message
CrazyMan



Joined: 05 Apr 2006
Posts: 54

PostPosted: Wed Feb 21, 2007 3:38 am    Post subject: Reply with quote

Port state is listening.
No firewall.
When i do connection in console show

Started
<AuxConnection>

Its not OS problem )

Need to fix this

Author Message
CrazyMan



Joined: 05 Apr 2006
Posts: 54

PostPosted: Wed Feb 21, 2007 3:42 am    Post subject: Reply with quote

Tested:
In FREEBSD dont work.
In Win32 - work.

Author Message
CrazyMan



Joined: 05 Apr 2006
Posts: 54

PostPosted: Sun Feb 25, 2007 4:34 pm    Post subject: Reply with quote

Simply test:
Quote:
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:

Quote:
<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:
Quote:
[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

Post new topic   Reply to topic    PenUltima Online Forum Index -> Bug Reports 097 All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty