sci-visus / OpenVisus

Open Source distribution of the ViSUS capabilities
Other
27 stars 18 forks source link

Opening unreachable datasets hangs #188

Closed ptbremer closed 2 years ago

ptbremer commented 2 years ago

It seems that if you try to open a dataset that you cannot reach both the viewer and the jupyter notebook hangs indefinitely rather than returning some empty data or a data not found error. I.e. something like

    <alias key="server" value="https://acam.apps.czapps.llnl.gov"/>
    <alias key="username" value="visus"/>
    <alias key="password" value="xxxxxxxxxxxxxxxxxxxxxxxxx"/>
    <dataset name="AMTruss" url="$(server)/mod_visus?dataset=AMTruss&amp;~auth_username=$(username)&amp;~auth_password=$(password)"/>

in the config will just hang

scrgiorgio commented 2 years ago

we added a timeout to avoid this behavior.

scrgiorgio commented 2 years ago

We probably need to add a timeout to the network request. Just out of curiosity: does it returns after a "while"?

On Fri, Jul 1, 2022 at 7:45 PM Peer-Timo Bremer @.***> wrote:

It seems that if you try to open a dataset that you cannot reach both the viewer and the jupyter notebook hangs indefinitely rather than returning some empty data or a data not found error. I.e. something like

in the config will just hang

— Reply to this email directly, view it on GitHub https://github.com/sci-visus/OpenVisus/issues/188, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJTZP5QQBVUGX6PEKYD6TTVR4VFNANCNFSM52NM44AA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Giorgio Scorzelli Director of Software Development, Center for Extreme Data Management, Analysis and Visualization (CEDMAV) Director of Software Development, National Science Data Fabric (NSDF)