You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Nils Hügelmann (JIRA)" <ji...@apache.org> on 2014/10/01 14:30:34 UTC
[jira] [Commented] (THRIFT-2719) ObjectDisposedException in TSocket
when sending rapidly
[ https://issues.apache.org/jira/browse/THRIFT-2719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14154747#comment-14154747 ]
Nils Hügelmann commented on THRIFT-2719:
----------------------------------------
Hmm, okay, in my original version it looked like this:
{code}
try
{
if( hlp.Client.Client != null)
hlp.Client.EndConnect(asyncres);
}
catch (SocketException)
{
// catch that away
}
{code}
which didn't catch a ObjectDisposedException. So i assume this is now fixed anyway :-)
> ObjectDisposedException in TSocket when sending rapidly
> -------------------------------------------------------
>
> Key: THRIFT-2719
> URL: https://issues.apache.org/jira/browse/THRIFT-2719
> Project: Thrift
> Issue Type: Bug
> Components: C# - Library
> Affects Versions: 0.9.1
> Reporter: Nils Hügelmann
> Assignee: Jens Geyer
> Attachments: thrift-2719-fix.patch
>
>
> Test code opens a connection, fires one request, then closes the connection in a loop. In my environment, i get an ObjectDisposedException for a socket object in TSocket.cs after a few hundred requests. I'm not sure what causes this, i suspect some underlying socket reusing.
> Attached patch fixes the issue.
> If you require more info to accept this, i cannot promise that i will be able to deliver that.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)