<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — Possible race condition in check_cookie()]]></title>
		<link>https://punbb.informer.com/forums/topic/10834/possible-race-condition-in-checkcookie/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/10834/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Possible race condition in check_cookie().]]></description>
		<lastBuildDate>Wed, 22 Mar 2006 17:45:06 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Possible race condition in check_cookie()]]></title>
			<link>https://punbb.informer.com/forums/post/65287/#p65287</link>
			<description><![CDATA[<div class="quotebox"><cite>Ulph wrote:</cite><blockquote><p>OK, thanks.</p><p>Why hasn&#039;t a fix been included in the current punbb?</p><p>If the transactions don&#039;t prevent this sort of race condition I can see where other problems easily could emerge, although not as often.</p></blockquote></div><p>Because it&#039;s very rare. It will be dealt with in the next release.</p>]]></description>
			<author><![CDATA[null@example.com (Rickard)]]></author>
			<pubDate>Wed, 22 Mar 2006 17:45:06 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/65287/#p65287</guid>
		</item>
		<item>
			<title><![CDATA[Re: Possible race condition in check_cookie()]]></title>
			<link>https://punbb.informer.com/forums/post/65227/#p65227</link>
			<description><![CDATA[<p>What about a UNIQUE constraint on the online table on (user_id, ident)?</p>]]></description>
			<author><![CDATA[null@example.com (Miles)]]></author>
			<pubDate>Tue, 21 Mar 2006 22:58:53 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/65227/#p65227</guid>
		</item>
		<item>
			<title><![CDATA[Re: Possible race condition in check_cookie()]]></title>
			<link>https://punbb.informer.com/forums/post/64400/#p64400</link>
			<description><![CDATA[<p>Transactions aren&#039;t used by PunBB (at least in MySQL, I can see working transaction functions in the dblayer class for pgsql but I don&#039;t know that they&#039;re used), the reason being that only MyISAM tables don&#039;t support row locking</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Wed, 08 Mar 2006 11:42:57 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/64400/#p64400</guid>
		</item>
		<item>
			<title><![CDATA[Re: Possible race condition in check_cookie()]]></title>
			<link>https://punbb.informer.com/forums/post/64398/#p64398</link>
			<description><![CDATA[<p>OK, thanks.</p><p>Why hasn&#039;t a fix been included in the current punbb?</p><p>If the transactions don&#039;t prevent this sort of race condition I can see where other problems easily could emerge, although not as often.</p>]]></description>
			<author><![CDATA[null@example.com (Ulph)]]></author>
			<pubDate>Wed, 08 Mar 2006 11:33:36 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/64398/#p64398</guid>
		</item>
		<item>
			<title><![CDATA[Re: Possible race condition in check_cookie()]]></title>
			<link>https://punbb.informer.com/forums/post/64360/#p64360</link>
			<description><![CDATA[<p>See this topic: <a href="http://punbb.org/forums/viewtopic.php?id=8436">http://punbb.org/forums/viewtopic.php?id=8436</a></p>]]></description>
			<author><![CDATA[null@example.com (CodeXP)]]></author>
			<pubDate>Tue, 07 Mar 2006 21:23:05 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/64360/#p64360</guid>
		</item>
		<item>
			<title><![CDATA[Possible race condition in check_cookie()]]></title>
			<link>https://punbb.informer.com/forums/post/64352/#p64352</link>
			<description><![CDATA[<p>I have noticed that some users can get logged in twice. This causes messages from that particular user to be displayed twice.</p><p>I think the problem may be that you we do a query to get online status, check the online status and then update the database. This would cause a race condition if it isn&#039;t done atomically. Hm.. is this the case or would the begin/commit enclosing prevent that?</p><p>I am using postgresql and latest punbb.</p><p>EDIT: Hm.. after some more checking it seems like the transactions really should prevent race conditions, but I can&#039;t see how a users could get inserted twice into the online table otherwise..</p>]]></description>
			<author><![CDATA[null@example.com (Ulph)]]></author>
			<pubDate>Tue, 07 Mar 2006 19:37:11 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/64352/#p64352</guid>
		</item>
	</channel>
</rss>
