4 Replies Latest reply on Jul 20, 2011 1:14 AM by areohbee

    Long-running LrHttp.get calls causing lightroom to hang on exit


      Hey, all... my plugin is making http calls in the background with timeouts on the order of 30 seconds, and when I quit lightroom, it sometimes hangs until the http calls are completed.  Is there a way of cutting the http calls short on lightroom exit?  They're wrapped in LrTasks.startAsyncTask.


      (I could shorten the timeouts, but basically what I'm doing is monitoring for changes on the server, so instead of polling the server every quarter-second, I'd rather leave the connection open and have the server close it when there's new data: ie, I'm trying to use a "long polling" approach to keep network traffic down)