You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@superset.apache.org by gi...@git.apache.org on 2017/07/11 18:03:46 UTC

[GitHub] graceguo-supercat commented on issue #3030: flawed logic in the new visualization timeout

graceguo-supercat commented on issue #3030: flawed logic in the new visualization timeout
URL: https://github.com/apache/incubator-superset/issues/3030#issuecomment-314525277
 
 
   i see your point: instead of checking `err.statusText === 'timeout'`, i can use `err.status === 504` to handle 504 response. It seems when 504 happens, `err.statusText` is still `error`, that's why i feel there is no way to identify 504 from any other type of errors.
   
   But without client-side timeout limit, for users not behind proxy, they will wait either server timeout or browser timeout, whichever comes first. So we still need to handle browser timeout (assume we allow server timeout 5 minutes). Browser timeout doesn't have `err.status === 504`, but i think i can still use `err.statusText === 'timeout'`. 
   
   I think set ajax 'timeout' parameter is still necessary, but it doesn't need to be shorter than proxy timeout limit.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services