5 Replies Latest reply on Jul 2, 2012 1:07 AM by CD Aurelian

    Synchronization Rhoconnect timeout

      Hello,

       

      We have a Rhoconnect application that connects to WebService and this call is quite slow (it consumes more than a minute).

       

      So, when we synchronize a Terminal using dosync function it doesn’t work because of Rhoconnect timeout. Our Terminal doesn’t receive an error, only an empty result (because the WebServices doesn’t finish yet!)

       

      We reproduce this behaviour doing your Rhoconnect example and adding a sleep 60 at Rhoconnect application.

       

      def query(params)

         

                  puts "Start"

                  sleep 60

                  puts "Finish"

         

          @result = {

      "1"=>{"name"=>"Acme","brand"=>"Acme","price"=>"Acme","quantity"=>"Acme","sku"=>"Acme"},

      "2"=>{"name"=>"Jordi","brand"=>"Jordi","price"=>"Jordi","quantity"=>"Jordi","sku"=>"Jordi"}

          }

        End

       

      When the Terminal call the dosync function, it returns anything because of sleep, and if you change it and you write sleep 30, it works!

       

      Jordi.