c# - Connection Timeout but Job still running -


i have iis website going internal job processing. job take 10 mins. when user click button start job, after minute whole page whipe white , showing "connection timeout". job related calling 3rd pty apis, still going underground.

when job still running, user cannot log website. after job finished, user can use website again.

is there secret here?

you have several things in play here.

  1. time web browser wait response
  2. time webserver process request
  3. time sql command execute before client times out.
  4. time sql server run command before terminates command.

typically webbrowser 1 minute or 2 (not sure of exact numbers) see: connection timeout in ie see: in firefox should able check about:config

for webserver , asp.net see httpruntimesection.executiontimeout property

command timeout see sqlcommand.commandtimeout default 30 seconds.

that being said... because client stops waiting doesn't force sql server stop running command. calling close on connection should stop running command on server, may need wait rollback changes may have made.

i suspect not using sql server agent jobs if disconnecting connection not stop job.

if client not waiting send output send output client...

like

  response.write("<!-- progress ... -->");   response.flush(); 

you have flush doesn't buffer response on server side


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -