Changeset 11188


Ignore:
Timestamp:
06/11/08 13:38:38 (4 years ago)
Author:
sam
Message:

Ajout ut.cnxLocalSvrMaxAttempts 15 pour win et lin, 25 pour Mac (Java peut être très long à démarrer sous PPC sur un mac avec ressources limités)

Location:
trunk/Xul_Cms/chrome/content/scenaricms
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Xul_Cms/chrome/content/scenaricms/ut.js

    r11176 r11188  
    749749        }catch(e){ut.debug(e);} 
    750750} 
     751 
     752/** Nombre d'éssais de connection au serveur local avant timeout */ 
     753ut.cnxLocalSvrMaxAttempts = (ut.isMac ? 25 : 15); 
     754 
    751755// ####################### Gestion de la font-size ####################### 
    752756 
  • trunk/Xul_Cms/chrome/content/scenaricms/wspmgr/wsput.js

    r11147 r11188  
    303303                                        } 
    304304                                }else{//pas de réponse du serveur 
    305                                         if(vCounter<10){ 
     305                                        if(vCounter < ut.cnxLocalSvrMaxAttempts){ 
    306306                                                vCounter++; 
    307307                                                window.setTimeout(function(pDataProvider, pUrl, pCb){pDataProvider.loadFromService(pUrl, pCb, pCb);}, 500, pDataProvider, "/u/adminWsp?cdaction=InfoWsp&param="+pCodeWsp, cb); 
     
    354354                                                ut.debug("Le server '" + (pDataProvider.isLocal() ? "local" : pDataProvider.getWspServer().getId()) + "' est indisponible : " + vTarget.status); 
    355355                                        } 
    356                                 }else if(pDataProvider.isLocal() && vInitCounter < 5){// Le serveur peut ne pas répondre lors de son lancement 
     356                                }else if(pDataProvider.isLocal() && vInitCounter < ut.cnxLocalSvrMaxAttempts){// Le serveur peut ne pas répondre lors de son lancement 
    357357                                        ut.debug("Serveur local non ready; tentative n°" + vInitCounter); 
    358358                                        vInitCounter++; 
  • trunk/Xul_Cms/chrome/content/scenaricms/wspview/wspview.js

    r10889 r11188  
    802802                                try{ 
    803803                                        if(sWspView.fDataProvider.isLocal()) { 
    804                                                 if(vCountCheck > 12) { 
     804                                                if(vCountCheck > ut.cnxLocalSvrMaxAttempts) { 
    805805                                                        sWspView.xResetTreeMessage("Echec au lancement des ateliers locaux !"); 
    806806                                                        ut.alert("Le lancement d'une partie de l'application a échoué. Quittez et relancez l'application ultérieurement.", "Echec au lancement des ateliers locaux"); 
Note: See TracChangeset for help on using the changeset viewer.