#1  
Old 15th June 2010, 01:43 AM
Wolfgang
 
Posts: n/a
Default Gateway

I noticed our Bandwith Usage being extremely high, without any apparent
reason and found upon investigation the following:

I have a dedicated Server (Server 2003), HOSTED by my ISP on a fixed IP
Address.

I am running PortalGateway on that PC and 2 of our Branches are utilising it
for Support.

Logged in Users showed each Branch logged in 4 times as Control (with
different User Names), and one of them as Host as well (which shouldn't be
possible ie. Host and Control at the same time).

I stopped Gateway and started it again. It showed again all Logged in Users,
as before.

I closed the Gateway Program, re-started it, and Started Gateway. The Logged
in User List then was empty as expected.

Both Ladies in the Branch Office swear, that PortalControl wasn't
running(Checked in Task Manager), and that they couldn't login with their
normal Username, so they tried different ones, which, in spite of them not
being able to login with any of these attempts, somehow still got through to
the Gateway.

The Bandwidth usage dropped to normal levels after that.

Kind Regards
Wolfgang

PS: Running on Beta, have not tried Beta 2 yet


  #2  
Old 15th June 2010, 02:45 PM
Wolfgang
 
Posts: n/a
Default Re: Gateway

I just tried with Beta 2.

Installing Gateway as Service, Portal Control as well as PortalHost, on
Login show the following Error Message:

Access violation at address 005ACD66 in Module 'PortalGateway.exe'. Read of
Address 000003EC

Kind Regards
Wolfgang

"Wolfgang" <Wolfgang@compmark.net> wrote in message
news:4c164003$1@DSVR011613....
>I noticed our Bandwith Usage being extremely high, without any apparent
>reason and found upon investigation the following:
>
> I have a dedicated Server (Server 2003), HOSTED by my ISP on a fixed IP
> Address.
>
> I am running PortalGateway on that PC and 2 of our Branches are utilising
> it for Support.
>
> Logged in Users showed each Branch logged in 4 times as Control (with
> different User Names), and one of them as Host as well (which shouldn't be
> possible ie. Host and Control at the same time).
>
> I stopped Gateway and started it again. It showed again all Logged in
> Users, as before.
>
> I closed the Gateway Program, re-started it, and Started Gateway. The
> Logged in User List then was empty as expected.
>
> Both Ladies in the Branch Office swear, that PortalControl wasn't
> running(Checked in Task Manager), and that they couldn't login with their
> normal Username, so they tried different ones, which, in spite of them not
> being able to login with any of these attempts, somehow still got through
> to the Gateway.
>
> The Bandwidth usage dropped to normal levels after that.
>
> Kind Regards
> Wolfgang
>
> PS: Running on Beta, have not tried Beta 2 yet
>



  #3  
Old 15th June 2010, 02:49 PM
Wolfgang
 
Posts: n/a
Default Re: Gateway

Forgot to mention, that everythig works fine, if NOT installed as Service

Kind Regards
Wolfgang


  #4  
Old 15th June 2010, 03:01 PM
Wolfgang
 
Posts: n/a
Default Re: Gateway

I should maybe also add, that this is happening when using a recompiled
version of PortalGateway (Projects\Gateway) as well as using the downloaded
Executable (Bin)

Delphi: D2010
OS: Server 2003 and Vista ultimate

Kind Regards
Wolfgang


  #5  
Old 15th June 2010, 03:27 PM
Hannes Danzl[NDD]
 
Posts: n/a
Default Re: Gateway

Wolfgang wrote:

> I should maybe also add, that this is happening when using a recompiled
> version of PortalGateway (Projects\Gateway) as well as using the downloaded
> Executable (Bin)
>
> Delphi: D2010
> OS: Server 2003 and Vista ultimate


Hm, looking at it right now

--

Hannes Danzl / NexusDB

Issue Tracker - http://www.nexusdb.com/mantis/view_all_bug_page.php
Newsgroup Web Gateway - http://www.nexusdb.com/forums/
Newsgroup Search - http://www.nexusdb.com/forums/search.php
  #6  
Old 15th June 2010, 05:21 PM
Hannes Danzl[NDD]
 
Posts: n/a
Default Re: Gateway

Wolfgang wrote:

> Forgot to mention, that everythig works fine, if NOT installed as Service


Right, there are actually 2 problems that I introduced obviously with a brain
explosion. First the On_AddUser, On_RemUser are called from outside the main
thread which can lead to some nasty lockups. The second is that when running
as service there's no instance of the main window thus accessing the fmGateway
instance crashes out.

As a quick fix:

unit RtcGatewayForm.pas:
------------------------

add:

const
WM_ADDEDUSER = WM_USER + 2;
WM_REMOVEDUSER = WM_USER + 3;

add:

procedure TfmGateway.wmAddedUser(var msg: TMessage);
var
newusername: PAnsiChar;
begin
newusername:=PAnsiChar(msg.LParam);
On_AddUser(strpas(newusername));
StrDispose(newusername);
end;

procedure TfmGateway.wmRemovedUser(var msg: TMessage);
var
newusername: PAnsiChar;
begin
newusername:=PAnsiChar(msg.LParam);
On_RemUser(strpas(newusername));
StrDispose(newusername);
end;

add:

initialization
fmGateway:=nil;
end;

unit dmGateConnUnit.pas:
------------------------

change TdmConn.Gateway1AfterExecute to:

procedure TdmConn.Gateway1AfterExecute(Sender: TRtcConnection;
Param: TRtcFunctionInfo; Result: TRtcValue);
var
newusername: PAnsiChar;
begin
if fmGateway=nil then // service
exit;
if (Param.FunctionName='Login') then
if Gateway1.UserInfos.isType[Param.asString['user']]<>rtc_NULL then
begin

Gateway1.UserInfos.asRecord[Param.asString['user']].asString['info_IP']:=Sender
..PeerAddr;
newusername:=StrNew(PAnsiChar(Param.asString['user']));
postmessage(fmGateway.Handle, wm_addeduser, 0, longint(newusername));
end
end;

change Gateway1UserLogout to:

procedure TdmConn.Gateway1UserLogout(const Text: string);
var
newusername: PAnsiChar;
begin
if fmGateway=nil then // service
exit;

newusername:=StrNew(PAnsiChar(AnsiString(Text)));
postmessage(fmGateway.Handle, wm_removeduser, 0, longint(newusername));
end;

Recompile and it should work.

Sorry for that messup, it was a last minute change from beta1 and backfired.

--

Hannes Danzl / NexusDB

Issue Tracker - http://www.nexusdb.com/mantis/view_all_bug_page.php
Newsgroup Web Gateway - http://www.nexusdb.com/forums/
Newsgroup Search - http://www.nexusdb.com/forums/search.php
  #7  
Old 15th June 2010, 06:07 PM
Wolfgang
 
Posts: n/a
Default Re: Gateway

Thank you Hannes, this works now perfectly.

While I have your Attention: Is it not possible, somehow to kick a user?

Some of our Clients keep logged in until they drop everything at 5 O'Clock,
and, if we are lucky, turn off their computer.

Kind Regards
Wolfgang


  #8  
Old 15th June 2010, 06:15 PM
Hannes Danzl[NDD]
 
Posts: n/a
Default Re: Gateway

Wolfgang wrote:

> Thank you Hannes, this works now perfectly.
>
> While I have your Attention: Is it not possible, somehow to kick a user?
>
> Some of our Clients keep logged in until they drop everything at 5 O'Clock,
> and, if we are lucky, turn off their computer.


Not at the moment. But why would you need to kick them? Anyway, if you need
the feature please add a new request to our tracker. Make sure to add as much
information as possible so that we understand fully what you want to achieve.
Especially in this case cause from our point of view the gateaway is usally
just a service that runs on some machine outside the firewall to pass requests
through. This also means that usually the gateway UI would in most cases not
be accesible.

--

Hannes Danzl / NexusDB

Issue Tracker - http://www.nexusdb.com/mantis/view_all_bug_page.php
Newsgroup Web Gateway - http://www.nexusdb.com/forums/
Newsgroup Search - http://www.nexusdb.com/forums/search.php
  #9  
Old 26th July 2010, 09:21 PM
ccy
 
Posts: n/a
Default Using Portal Control to access Windows 7 Portal Host is very slow


Hi,

I am accessing a Portal Host on windows 7 (64 bits) in LAN (1Gbps). I
found that it is very slow and it will hang and close the session after
a while. If I have accessed Portal Host on Windows XP in same network
environment, it is smooth and nice.

I have installed virtual display driver on Windows 7 but it doesn't
help.

The Portal gateway, host and control are extracted from the bin folder.

Any ideas how to overcome this problem?

Thank you.

Best Regards,
Chau, Chee-Yang


--
ccy
  #10  
Old 27th July 2010, 06:29 AM
Hannes Danzl[NDD]
 
Posts: n/a
Default Re: Using Portal Control to access Windows 7 Portal Host is very slow

> The Portal gateway, host and control are extracted from the bin folder.
>
> Any ideas how to overcome this problem?


Can you please try to manually set the framerate (on the control) to something
like 10 frames/sec and see if that helps. I've seen in testing that sometimes
the default setting starts stalling which seems due to a too high frame rate.
I've that on the list of things to look at already. Please let us know if it
helps.

--

Hannes Danzl / NexusDB

Issue Tracker - http://www.nexusdb.com/mantis/view_all_bug_page.php
Newsgroup Web Gateway - http://www.nexusdb.com/forums/
Newsgroup Search - http://www.nexusdb.com/forums/search.php


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
updating portal host on remote pc Peter Sanders nexusdb.public.support.portal 5 13th July 2010 09:33 PM
Lots of duplication in portal host app Thorsten Engler [NDA] nexusdb.public.support.portal 11 7th May 2010 08:38 AM
how does the host service work on Windows 7? Will Owyong nexusdb.public.support.portal 6 19th February 2010 10:41 AM
Portal Control - overlapping Hosts William Owyong [NDX] nexusdb.public.support.portal 9 22nd August 2009 03:24 AM
Portal Control And Hosts In DLL's Eivind Bakkestuen [NDD] nexusdb.public.support.portal 5 22nd August 2009 03:24 AM


All times are GMT +11. The time now is 06:09 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.