It is currently Fri Nov 21, 2008 11:03 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: POL097[FreeBSD] AUX connection bug
PostPosted: Tue Feb 20, 2007 3:01 pm 
Offline

Joined: Wed Apr 05, 2006 8:08 am
Posts: 54
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 Tue Feb 20, 2007 11:41 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 20, 2007 5:19 pm 
Doesn't a "Connection Refused" usually mean the server actually isn't listening on that port at all?


Top
  
 
 Post subject:
PostPosted: Tue Feb 20, 2007 11:38 pm 
Offline

Joined: Wed Apr 05, 2006 8:08 am
Posts: 54
Port state is listening.
No firewall.
When i do connection in console show

Started
<AuxConnection>

Its not OS problem )

Need to fix this


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 20, 2007 11:42 pm 
Offline

Joined: Wed Apr 05, 2006 8:08 am
Posts: 54
Tested:
In FREEBSD dont work.
In Win32 - work.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 25, 2007 12:34 pm 
Offline

Joined: Wed Apr 05, 2006 8:08 am
Posts: 54
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl