LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

G Web Server can handle one CGI.vi script at a time even though it is reentrant.

Hello All

Firstly: What the heck Ni has done to this news exchange !!!

Second- real question.

I have my vi running on G Web Server beeing called by IE. Due to database connectivity the execution time is about 3 sec.
It is not a problem for a single user, but when 20 users calls the same vi they need to wait for a long time before the G web Server gets their request.

I tried to make my vi as reentrant (an all sub-vis), but G web Server still proceed only one instance at a time.

I can see that G web Server is showing as many "Active Connections" as user calls, but it executes them sequentially.

Is there a way to execute as many instances as user calls in the same time (simultaneously) ?

thanks for help in advance.

regards
Pawel
0 Kudos
Message 1 of 3
(2,872 Views)
Hello Pawel

Some discussion has gone on about this same topic, see the following post:

http://forums.ni.com/ni/board/message?board.id=170&message.id=13537&requireLogin=False

At the heart of the issue is the fact that the G Web Server only takes incoming connections on one port. Each connection has to wait for the previous ones, so no reentrancy is possible.

Regards
Mohadjer
Message 2 of 3
(2,821 Views)
Hello Mohadjer

Thanks for the info.
I guess you are right, it is not possible to make a multiple calls to the same CGI.
One of the things, which has been mentioned in the thread and which I have been looking into is the template solution.
There is an example in G web server examples about that, but it will make the whole thing more difficult, especiallt that I use the client-server side cookies.
I have already checked that G web server will process simultaneously two different named vis, so the template sounds like a good solution for this. Of course, it could be better if user did not need to take care of this (as it is in other CGI servers). It could be actually the "show stopper" in my project.

kind regards
Pawel
0 Kudos
Message 3 of 3
(2,817 Views)