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 <andrewthef...@gmail.com> wrote: > > 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 > event that the response doesn't make it back to the client and the > transaction does not complete. I've looked into the exception_view_config and > this doesn't appear to help. Would a tween be the best way to handle this? > Thanks. > > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pylons-discuss+unsubscr...@googlegroups.com > <mailto:pylons-discuss+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/cab03e28-c370-4dcb-917a-7b5d36e7a86fn%40googlegroups.com > > <https://groups.google.com/d/msgid/pylons-discuss/cab03e28-c370-4dcb-917a-7b5d36e7a86fn%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/EDBC67C7-836E-425D-AFB7-95BDFFFC14FC%400x58.com.
signature.asc
Description: Message signed with OpenPGP