Jump to content

aventrax

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by aventrax

  1. Thank you for moving the post to General.

     

    About the issue: I have not restarted the application pool during the test but this is repeatable so what I can do is:

    1. Reboot the web server
    2. Open http://10.1.1.110:10080/TEST/test.dll
    3. Call http://10.1.1.110:10080/TEST/myapp.dll 

    On the step 3, with a clean situation, the error came up and the problem is exactly the same as described above.

     

    Just a small note: After the nodes being purged, the newly created nodes/sessions has no problem at all. The problem happens only during the "first hyperserver init". In this situation the server works perfectly for months but if I reboot the server or simply restart IIS the problem arises.

  2. What I'll describe has been tested with version 1.70.1485 but even with the latest 1.90.1519, having same results.

    1. Compiled a very simple demo app displaying just a text message
    2. Configured IIS with just one 'TEST' Application pointing to C:\UniGUI\TEST\
    3. Configured Hyperserver running my app (it has been renamed to test.dll with my demo app as test.exe)
    4. The Hyperserver test.cfg file has only the following modifications
    ...
    [http_transport]
    start_port=16384
    
    [hyper_server]
    binary_name=test.exe
    ...

    Calling http://10.1.1.110:10080/TEST/test.dll  opens my simple demo app without any problem.

    Log - C:\UniGUI\TEST\log\test_dll\A2020-02-07.log

    test.dll: 00000C20: 17:32:58 []:>--------------------------------------------------------------<
    test.dll: 00000C20: 17:32:58 []:Starting Server. Module Handle: 0000000001140000
    test.dll: 00000C20: 17:32:58 [TUniServerModule]:Server First Init.
    test.dll: 00000C20: 17:32:58 [TUniHyperServer]:InitInterceptor
    test.dll: 00000C20: 17:32:58 [Transport.PoolSize]:516
    test.dll: 00000C20: 17:32:59 []:Server Started. Module Handle: 0000000001140000
    

     

    Log - C:\UniGUI\TEST\log\test_exe\n0\A2020-02-07.log

    test.exe: 00000DD4: 17:32:58 []:>--------------------------------------------------------------<
    test.exe: 00000DD4: 17:32:58 [TUniServerModule]:Server First Init.
    test.exe: 00000DD4: 17:32:58 [TUniServerModule]:Node Id = 0
    test.exe: 00000DD4: 17:32:58 [TUniServerModule]:Node MaxSessions = 250
    test.exe: 00000DD4: 17:32:58 [TUniServerModule]:Starting HTTP Server on Port: 16384...
    test.exe: 00000DD4: 17:32:58 [TUniServerModule]:HTTP Server Started on Port: 16384
    

     

    Log - C:\UniGUI\TEST\log\test_exe\n1\A2020-02-07.log

    test.exe: 00000BEC: 17:32:58 []:>--------------------------------------------------------------<
    test.exe: 00000BEC: 17:32:58 [TUniServerModule]:Server First Init.
    test.exe: 00000BEC: 17:32:58 [TUniServerModule]:Node Id = 1
    test.exe: 00000BEC: 17:32:58 [TUniServerModule]:Node MaxSessions = 250
    test.exe: 00000BEC: 17:32:58 [TUniServerModule]:Starting HTTP Server on Port: 16385...
    test.exe: 00000BEC: 17:32:58 [TUniServerModule]:HTTP Server Started on Port: 16385
    

     

    That's ok.  Proceeding..

    1. Copy the same app with a different name (myapp.exe)
    2. Configuring Hyperserver with the following myapp.cfg
    ...
    [http_transport]
    start_port=16784
    
    [hyper_server]
    binary_name=myapp.exe
    ...

     

    Now I will trigger the problem, calling http://10.1.1.110:10080/TEST/myapp.dll

    myapp opens BUT my other app test.dll crashes with : Socket Error # 10054 Connection reset by peer.

     

    Here the logs...

     

    Log - C:\UniGUI\TEST\log\myapp_dll\A2020-02-07.log

    myapp.dll: 00000964: 17:41:23 []:>--------------------------------------------------------------<
    myapp.dll: 00000964: 17:41:23 []:Starting Server. Module Handle: 0000000001AD0000
    myapp.dll: 00000964: 17:41:23 [TUniServerModule]:Server First Init.
    myapp.dll: 00000964: 17:41:23 [TUniHyperServer]:InitInterceptor
    myapp.dll: 00000964: 17:41:23 [Transport.PoolSize]:516
    myapp.dll: 00000964: 17:41:33 []:Server Started. Module Handle: 0000000001AD0000
    

     

    Log - C:\UniGUI\TEST\log\myapp_exe\n0\A2020-02-07.log

    myapp.exe: 00000D6C: 17:41:32 []:>--------------------------------------------------------------<
    myapp.exe: 00000D6C: 17:41:32 [TUniServerModule]:Server First Init.
    myapp.exe: 00000D6C: 17:41:32 [TUniServerModule]:Node Id = 0
    myapp.exe: 00000D6C: 17:41:32 [TUniServerModule]:Node MaxSessions = 250
    myapp.exe: 00000D6C: 17:41:32 [TUniServerModule]:Starting HTTP Server on Port: 16784...
    myapp.exe: 00000D6C: 17:41:32 [TUniServerModule]:HTTP Server Started on Port: 16784
    

     

    Log - C:\UniGUI\TEST\log\myapp_exe\n1\A2020-02-07.log

    myapp.exe: 00000744: 17:41:33 []:>--------------------------------------------------------------<
    myapp.exe: 00000744: 17:41:33 [TUniServerModule]:Server First Init.
    myapp.exe: 00000744: 17:41:33 [TUniServerModule]:Node Id = 1
    myapp.exe: 00000744: 17:41:33 [TUniServerModule]:Node MaxSessions = 250
    myapp.exe: 00000744: 17:41:33 [TUniServerModule]:Starting HTTP Server on Port: 16785...
    myapp.exe: 00000744: 17:41:33 [TUniServerModule]:HTTP Server Started on Port: 16785
    

     

    Log - C:\UniGUI\TEST\log\myapp_exe\n2\A2020-02-07.log

    myapp.exe: 00000EC4: 17:41:33 []:>--------------------------------------------------------------<
    myapp.exe: 00000EC4: 17:41:33 [TUniServerModule]:Server First Init.
    myapp.exe: 00000EC4: 17:41:33 [TUniServerModule]:Node Id = 2
    myapp.exe: 00000EC4: 17:41:33 [TUniServerModule]:Node MaxSessions = 250
    myapp.exe: 00000EC4: 17:41:33 [TUniServerModule]:Starting HTTP Server on Port: 16786...
    myapp.exe: 00000EC4: 17:41:33 [TUniServerModule]:HTTP Server Started on Port: 16786
    

     

    And now the problem...

    Log - C:\UniGUI\TEST\log\test_dll\A2020-02-07.log

    test.dll: 00000C20: 17:32:58 []:>--------------------------------------------------------------<
    test.dll: 00000C20: 17:32:58 []:Starting Server. Module Handle: 0000000001140000
    test.dll: 00000C20: 17:32:58 [TUniServerModule]:Server First Init.
    test.dll: 00000C20: 17:32:58 [TUniHyperServer]:InitInterceptor
    test.dll: 00000C20: 17:32:58 [Transport.PoolSize]:516
    test.dll: 00000C20: 17:32:59 []:Server Started. Module Handle: 0000000001140000
    test.dll: 00000BD0: 17:41:31 [SendCommand Error, Node: 1]:Socket Error # 10054
    Connection reset by peer.
    test.dll: 00000BD0: 17:41:31 [SendCommand Error, Node: 1]:Socket Error # 10054
    Connection reset by peer.
    test.dll: 00000BD0: 17:41:41 [SendCommand Error, Node: 0]:Socket Error # 10054
    Connection reset by peer.
    test.dll: 00000BD0: 17:41:41 [SendCommand Error, Node: 0]:Socket Error # 10054
    Connection reset by peer.
    test.dll: 00000BD0: 17:41:41 [SendCommand Error, Node: 1]:Socket Error # 10054
    Connection reset by peer.
    test.dll: 00000BD0: 17:41:41 [SendCommand Error, Node: 1]:Socket Error # 10054
    Connection reset by peer.
    test.dll: 00000BD0: 17:41:51 [SendCommand Error, Node: 0]:Socket Error # 10054
    Connection reset by peer.
    test.dll: 00000BD0: 17:41:51 [SendCommand Error, Node: 0]:Socket Error # 10054
    Connection reset by peer.
    test.dll: 00000BD0: 17:41:51 [SendCommand Error, Node: 1]:Socket Error # 10054
    Connection reset by peer.
    test.dll: 00000BD0: 17:41:51 [SendCommand Error, Node: 1]:Socket Error # 10054
    Connection reset by peer.
    test.dll: 00000BD0: 17:42:02 [SendCommand Error, Node: 0]:Socket Error # 10054
    Connection reset by peer.
    test.dll: 00000BD0: 17:42:02 [SendCommand Error, Node: 0]:Socket Error # 10054
    Connection reset by peer.
    test.dll: 00000BD0: 17:42:02 [SendCommand Error, Node: 1]:Socket Error # 10054
    Connection reset by peer.
    test.dll: 00000BD0: 17:42:02 [SendCommand Error, Node: 1]:Socket Error # 10054
    Connection reset by peer.
    test.dll: 00000BD0: 17:42:02 [Node #1]:Node Status request timed out. Node purged.
    test.dll: 00000964: 17:42:02 [TUniHyperServer.HandleHTTPRequest(), Node:[0]]:Socket Error # 10054
    Connection reset by peer.
    test.dll: 00000964: 17:42:02 [HttpExtensionProc[10.1.2.40]]:EIdSocketError : Socket Error # 10054
    Connection reset by peer. : Addr: $012B9C00
    test.dll: 00000BD0: 17:42:13 [SendCommand Error, Node: 0]:Socket Error # 10061
    Connection refused.
    test.dll: 00000BD0: 17:42:14 [SendCommand Error, Node: 0]:Socket Error # 10061
    Connection refused.
    test.dll: 00000BD0: 17:42:14 [Node #0]:Node Status request timed out. Node purged.
    

     

    Log - C:\UniGUI\TEST\log\test_exe\n0\A2020-02-07.log

    test.exe: 00000DD4: 17:32:58 []:>--------------------------------------------------------------<
    test.exe: 00000DD4: 17:32:58 [TUniServerModule]:Server First Init.
    test.exe: 00000DD4: 17:32:58 [TUniServerModule]:Node Id = 0
    test.exe: 00000DD4: 17:32:58 [TUniServerModule]:Node MaxSessions = 250
    test.exe: 00000DD4: 17:32:58 [TUniServerModule]:Starting HTTP Server on Port: 16384...
    test.exe: 00000DD4: 17:32:58 [TUniServerModule]:HTTP Server Started on Port: 16384
    test.exe: 00000F50: 17:42:24 []:>--------------------------------------------------------------<
    test.exe: 00000F50: 17:42:24 [TUniServerModule]:Server First Init.
    test.exe: 00000F50: 17:42:24 [TUniServerModule]:Node Id = 0
    test.exe: 00000F50: 17:42:24 [TUniServerModule]:Global Cache Folder Erased. <2> Files deleted.
    test.exe: 00000F50: 17:42:24 [TUniServerModule]:Node MaxSessions = 250
    test.exe: 00000F50: 17:42:24 [TUniServerModule]:Starting HTTP Server on Port: 16384...
    test.exe: 00000F50: 17:42:24 [TUniServerModule]:HTTP Server Started on Port: 16384
    

     

    Log - C:\UniGUI\TEST\log\test_exe\n1\A2020-02-07.log

    test.exe: 00000BEC: 17:32:58 []:>--------------------------------------------------------------<
    test.exe: 00000BEC: 17:32:58 [TUniServerModule]:Server First Init.
    test.exe: 00000BEC: 17:32:58 [TUniServerModule]:Node Id = 1
    test.exe: 00000BEC: 17:32:58 [TUniServerModule]:Node MaxSessions = 250
    test.exe: 00000BEC: 17:32:58 [TUniServerModule]:Starting HTTP Server on Port: 16385...
    test.exe: 00000BEC: 17:32:58 [TUniServerModule]:HTTP Server Started on Port: 16385
    test.exe: 00000D38: 17:42:12 []:>--------------------------------------------------------------<
    test.exe: 00000D38: 17:42:12 [TUniServerModule]:Server First Init.
    test.exe: 00000D38: 17:42:12 [TUniServerModule]:Node Id = 1
    test.exe: 00000D38: 17:42:12 [TUniServerModule]:Global Cache Folder Erased. <1> Files deleted.
    test.exe: 00000D38: 17:42:12 [TUniServerModule]:Node MaxSessions = 250
    test.exe: 00000D38: 17:42:12 [TUniServerModule]:Starting HTTP Server on Port: 16385...
    test.exe: 00000D38: 17:42:12 [TUniServerModule]:HTTP Server Started on Port: 16385
    

     

    As you can see calling myapp.dll triggers a crash on test.dll.

    This happens only because they're on the same folder C:\UniGUI\TEST\, If i put myapp on C:\UniGUI\MYAPP\ it has no problems!

    Anywhere on the documentation having one dedicated fodler per-app has been specified, moreover the logs are placed per-process in different sub-folders, in other words having 2 dll/exe on the same folder is something that seems supported by design.

     

    Any help?

     

     


  3. This bug is happening on Windows, not only with unsupported Wine "hacks". It's very important to be able to use the HyperServer on a subfolder but it still doesn't work. Please give it the importance that it deserve and fix it, please!
  4. I fixed this problem.

     

    How about? Is there a new version?

    About our UniGui version, I'm will ask to the developer that is testing UniGUI as soon as possible. We probably bought a license to evaluate the product but I can't confirm that right now.

  5. Thanks...

     

    I mean using Apache JMeter as a proxy and recording the session on my UniGUI site (like this https://www.digitalocean.com/community/tutorials/how-to-use-jmeter-to-record-test-scenarios)

     

    I have my load balancers injecting a session cookie to lock the browser to a certain backend server and your Stress Tool does not support cookies them because UniGui does not use them.

    For this reason, going through my load balancers is perfectly fine using a browser (that supports cookies), but your stress tool thrown out many errors because the session jumps from one backend server to the other. The only thing that prevent using different backends for the same session is the cookie injected by the load balancer.

     

    So, JMeter supports cookies and I need it as a stress tool.

    JMeter can record a session as your stress tool does, but sometimes the session is reset unexpectedly and, looking on the requests, I can guess that the session is being rejected because of the malformed Ajax parameter that  has a double-double quote in it:

     

    Hypertext Transfer Protocol

    HTML Form URL Encoded: application/x-www-form-urlencoded

    Form item: "Ajax" = "1"

    Form item: "IsEvent" = "1"

    Form item: "Obj" = "O220"

    Form item: "Evt" = "select"

    Form item: "this" = "O220"

    Form item: ""_fp_" = "_S_ID=QZ3bYFScfeFFD6D531"

    Form item: "O220" = "0Verboten""

    Form item: "_seq_" = "b"

    Form item: "_uo_" = "O80"

     

     

     

    On the highlighted row there is the _S_ID string but it looks malformed, somehow mixed with the _fp_ variable.

    This is the error that, in my opinion, results in a "invalid session" when recording the session with JMeter.

    I don't know why the browser does not show errors, probably JMeter is more sensitive...

     

    Can you help me?

  6. ColIndex=1

    _fp_=_S_ID=KSbWmuOucCqu6Yw&OCD=%020%02%02%030%031%03

     

     

     

    Sorry for replying to this old thread but I'm having issues recording an UniGui session with Apache JMeter.

    It looks like the quoted variable is somehow weird, indeed there should be the _S_ID = <session_id>  as the previously requests, but it is different, kinda mixed with the _fp_ variable.

     

    Can anybody explain me if this is the normal behavior?

     

    Looking through Wireshark I can see...

     

    Hypertext Transfer Protocol

    HTML Form URL Encoded: application/x-www-form-urlencoded

    Form item: "Ajax" = "1"

    Form item: "IsEvent" = "1"

    Form item: "Obj" = "O220"

    Form item: "Evt" = "select"

    Form item: "this" = "O220"

    Form item: ""_fp_" = "_S_ID=QZ3bYFScfeFFD6D531"

    Form item: "O220" = "0Verboten""

    Form item: "_seq_" = "b"

    Form item: "_uo_" = "O80"

     

     

    Again, I see double quotes where they shouldn't be, this maybe is the reason because JMeter as a proxy thrown me out giving "Invalid Session ID"...

×
×
  • Create New...