<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://theeyetribe.com/forum/feed.php?f=25&amp;t=244" />

<title>The Eye Tribe</title>
<subtitle>Developer Forum</subtitle>
<link href="http://theeyetribe.com/forum/index.php" />
<updated>2014-06-30T01:17:24+02:00</updated>

<author><name><![CDATA[The Eye Tribe]]></name></author>
<id>http://theeyetribe.com/forum/feed.php?f=25&amp;t=244</id>
<entry>
<author><name><![CDATA[Martin]]></name></author>
<updated>2014-06-30T01:17:24+02:00</updated>
<published>2014-06-30T01:17:24+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=244&amp;p=1055#p1055</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=244&amp;p=1055#p1055"/>
<title type="html"><![CDATA[Re: GazeApi disconnect sometimes throws]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=244&amp;p=1055#p1055"><![CDATA[
Thanks Greg. Responsible developer notified.<p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=117">skataMartin</a> — 30 Jun 2014, 01:17</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[greg@collectivesoftware.com]]></name></author>
<updated>2014-06-28T23:57:30+02:00</updated>
<published>2014-06-28T23:57:30+02:00</published>
<id>http://theeyetribe.com/forum/viewtopic.php?t=244&amp;p=1045#p1045</id>
<link href="http://theeyetribe.com/forum/viewtopic.php?t=244&amp;p=1045#p1045"/>
<title type="html"><![CDATA[GazeApi disconnect sometimes throws]]></title>

<content type="html" xml:base="http://theeyetribe.com/forum/viewtopic.php?t=244&amp;p=1045#p1045"><![CDATA[
In my application, I am frequently disconnecting from the server.  It mostly works fine, but sometimes in gtl::Socket::disconnect( ), the call to  boost::asio::ip::tcp::socket.close( ) throws a boost::system::system_error with code WSAENOTSOCK (10038).<br /><br />I have tried uncommenting the shutdown( ) call, and then that guy just throws the error.  <br /><br />So I'm assuming there's some race condition where the underlying socket can be deleted or otherwise *poofed* but the <br />gtl::Socket object gets confused about this state.<br /><br />I have worked around the issue by putting the boost close( ) inside a try block and catching boost::system::system_error.  Because of <a href="http://theeyetribe.com/forum/viewtopic.php?f=25&amp;t=243&amp;sid=bd7f549caa289c31816479032d1611f6" class="postlink">another issue</a> I have to delete the entire GazeApi every time after I disconnect anyway, so that will mask any issue that might arise from the state of the existing gtl::Socket object becoming confused.<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>         try<br />         {<br />            //gjb why was this commented out?<br />            m_socket.shutdown(boost::asio::socket_base::shutdown_type::shutdown_both);<br />            m_socket.close();<br />         }<br />         catch(boost::system::system_error e)<br />         {<br />            fprintf(stderr, &quot;socket close caught error %d\n&quot;, e.code());<br />         }<br /></code></dd></dl><p>Statistics: Posted by <a href="http://theeyetribe.com/forum/memberlist.php?mode=viewprofile&amp;u=3018">skatagreg@collectivesoftware.com</a> — 28 Jun 2014, 23:57</p><hr />
]]></content>
</entry>
</feed>