<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">spgsql connections are definitely not kill-safe. Does the web server, in fact, kill servlet threads under some circumstances (like reload)?<div><br></div><div>I don't have time right now to write a kill-safe proxy, but I would be happy to accept one and add it to the package.</div><div><br></div><div>Ryan</div><div><br><div><br></div><div><div><div>On Apr 21, 2009, at 3:44 PM, YC wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Oops - did not cc plt-scheme.<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">YC</b> <span dir="ltr">&lt;<a href="mailto:yinso.chen@gmail.com">yinso.chen@gmail.com</a>></span><br> Date: Tue, Apr 21, 2009 at 12:42 PM<br>Subject: Re: [plt-scheme] dynamic-wind &amp; kill-thread<br>To: Robby Findler &lt;<a href="mailto:robby@eecs.northwestern.edu">robby@eecs.northwestern.edu</a>><br><br><br><br><div class="gmail_quote"> <div class="im">On Tue, Apr 21, 2009 at 12:09 PM, Robby Findler <span dir="ltr">&lt;<a href="mailto:robby@eecs.northwestern.edu" target="_blank">robby@eecs.northwestern.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Well, it is the case that if you're using non-kill-safe- code (as it<br> sounds like spqsql is), then you cannot kill those threads.<br> </blockquote></div><div><br>The threads are initiated and managed from web-server.&nbsp; I don't know how it handles interrupted connections (I generally reproduce the bug via refreshing browser quickly), but these threads appears outside my apps control.<br> <br></div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> You might be able to build a kill-safe wrapper for that code, however.<br> That is, put all of the code that queries the database into a single<br> thread and then communicate with that thread in a kill-safe manner<br> (much like the way the manager thread manages the queue in our kill<br> safe paper).<font color="#888888"></font></blockquote></div><div><br>Yeah that's my current plan as a stop gap.&nbsp; Eventually I think the kill-safe code should belong in spgsql package itself. &nbsp; <br></div></div><br>Is Trac still the right place to file bugs?&nbsp; I have bugs filed 5 months ago not being touched.<br> <br>Thanks,<br><font color="#888888">yc<br><br> </font></div><br> _________________________________________________<br> &nbsp;For list-related administrative tasks:<br> &nbsp;<a href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</a><br></blockquote></div><br></div></div></body></html>