Re: [pylons-discuss] Subscribing to connection lost / failed transaction event?

2022-03-15 Thread 'Jonathan Vanasco' via pylons-discuss
100% with you. That's why I wrote it isn't "really" possible. It is possible, just under limited conditions. IIRC, one could also use the COMET chunking technique to faciliate this - though that would likely cause some client side issues. If you're doing a direct browser-to-server connection,

Re: [pylons-discuss] Subscribing to connection lost / failed transaction event?

2022-03-08 Thread Bert JW Regeer
I would disagree with this statement, but only narrowly, once you start talking about proxies and reverse proxies and things of that nature, it becomes much harder because the client isn’t directly connected anymore. In most of todays environments you are right that it is really hard to know if

Re: [pylons-discuss] Subscribing to connection lost / failed transaction event?

2022-03-07 Thread Jonathan Vanasco
Just to clarify the above comment, this concept isn't really possible with any internet technology in general, not just Pyramid. On Thursday, February 17, 2022 at 8:35:25 PM UTC-5 Bert JW Regeer wrote: > No, this is not possible *. > > * Except under some very narrow circumstances, but none

Re: [pylons-discuss] Subscribing to connection lost / failed transaction event?

2022-02-17 Thread Bert JW Regeer
No, this is not possible *. * Except under some very narrow circumstances, but none that are easy to use or directly supported in Pyramid > On Feb 17, 2022, at 13:12, Andrew Free wrote: > > Is there a way to subscribe to any events of a dropped/lost connection? > > For example, if the user

[pylons-discuss] Subscribing to connection lost / failed transaction event?

2022-02-17 Thread Andrew Free
Is there a way to subscribe to any events of a dropped/lost connection? For example, if the user closed the browser window in the middle of a request. I am using pyramid_tm and having a hard time finding a method for this. I just want to run some code based on the request object state in the