Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 82182 invoked from network); 19 Sep 2010 21:51:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Sep 2010 21:51:39 -0000 Received: (qmail 77919 invoked by uid 500); 19 Sep 2010 21:51:37 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 77874 invoked by uid 500); 19 Sep 2010 21:51:37 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 77866 invoked by uid 99); 19 Sep 2010 21:51:37 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Sep 2010 21:51:37 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of michael.greene@gmail.com designates 209.85.214.172 as permitted sender) Received: from [209.85.214.172] (HELO mail-iw0-f172.google.com) (209.85.214.172) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Sep 2010 21:51:14 +0000 Received: by iwn3 with SMTP id 3so4396016iwn.31 for ; Sun, 19 Sep 2010 14:50:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:references:from :content-type:x-mailer:in-reply-to:message-id:date:to :content-transfer-encoding:mime-version; bh=Dtg9hduT4WwoWninccJR/iYbYYQn7tZ2wYXzfsEzmaY=; b=SZZ/JQ6aZkDik/3gtvp+WO16lAsZsVbYg0ys1t46zjLpehXjj+gEagrkhQgrK4UZH1 oWlWoEG99FKvTL1GO0QjlETSuashqt/vDxUJH+IetnINN9ESd8WG67sbABEluTT7wMDZ buk0+EErfjENMRiIz/GA52LerrdzTHngVghoE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:references:from:content-type:x-mailer:in-reply-to :message-id:date:to:content-transfer-encoding:mime-version; b=S+m2cYvQ4uw8lLVQoWe9MmInGln2ktUNmlWTpkOlxggzjEw4RUAfrJgqnOXCUBt4vX Dkmpk3EMhZwNa/BYgm+Cyq/ssPxx2gAiWozkCyaoHfwlui/G1jBOKmlB3xMuwXLw4D6L tmCd0txBf4PGGWN+gN0pR/tp85TiR+Pf7ApZc= Received: by 10.231.10.139 with SMTP id p11mr8645306ibp.179.1284933053285; Sun, 19 Sep 2010 14:50:53 -0700 (PDT) Received: from [192.168.0.183] (c-98-215-66-2.hsd1.il.comcast.net [98.215.66.2]) by mx.google.com with ESMTPS id h8sm6628846ibk.9.2010.09.19.14.50.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 19 Sep 2010 14:50:52 -0700 (PDT) Subject: Re: Connection issue with trunk using .net References: <4C968121.9010304@monit.dk> From: Michael Greene Content-Type: text/plain; charset=us-ascii X-Mailer: iPhone Mail (8B117) In-Reply-To: <4C968121.9010304@monit.dk> Message-Id: <2C7EC072-DEA0-4BEC-AF97-E25E6DC1B256@gmail.com> Date: Sun, 19 Sep 2010 16:50:49 -0500 To: "user@cassandra.apache.org" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (iPhone Mail 8B117) X-Virus-Checked: Checked by ClamAV on apache.org Trunk (and 0.7) use Thrift's framed transport, so you should wrap your TSock= et in a TFramedTransport. On 0.6 and earlier you should have been wrapping w= ith a TBufferedTransport for better performance but the framed transport is= inherently buffered. On Sep 19, 2010, at 4:31 PM, Morten Wegelbye Nissen wrote: > Hello List, >=20 > Knowing this question might be more in the area of thrift then cassandra, h= ere goes: >=20 > I have been trying to do some research in using cassandra as backend for a= system build for .net, but for some reason my client seams to terminat no m= atter what I do. >=20 > I am using latest from trunk, using the CliClient everything seams to work= , I can insert and get data. >=20 > What I have done so far, I have noticed that the thrift.jar is build from r= 959516 of the thrift project - so I have fetched that from the thrift projec= t. > I have used the thrift.exe to generate the source from cassandra.thrift. > Boiled it together in a C# project, and start to run it. > But, as soon as I issue the first RPC command, a IOException( Unable to wr= ite data to the transport connection: An established connection was aborted b= y the software in your host machine. ) i thrown. >=20 > I have used netcat to setup a "fake" cassandra server to ensure that it is= nothing to do with firewall or network issues. And here I see data. >=20 > The code to I use is: > TTransport transport =3D new TSocket("192.168.0.103", 9160); > TProtocol protocol =3D new TBinaryProtocol(transport); > transport.Open(); > Cassandra.Client client =3D new Cassandra.Client(protocol); > Dictionary auth =3D new Dictionary( ); > auth.Add( "dilbert", "nomoovertime" ); > AuthenticationRequest ar =3D new AuthenticationRequest(); > ar.Credentials =3D auth; > client.send_login( ar ); >=20 > Any clues, help, directions would be really appreciated, > Morten >=20