Return-Path: Delivered-To: apmail-incubator-thrift-dev-archive@minotaur.apache.org Received: (qmail 77335 invoked from network); 4 Mar 2009 10:20:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Mar 2009 10:20:18 -0000 Received: (qmail 25990 invoked by uid 500); 4 Mar 2009 10:20:17 -0000 Delivered-To: apmail-incubator-thrift-dev-archive@incubator.apache.org Received: (qmail 25971 invoked by uid 500); 4 Mar 2009 10:20:17 -0000 Mailing-List: contact thrift-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: thrift-dev@incubator.apache.org Delivered-To: mailing list thrift-dev@incubator.apache.org Received: (qmail 25874 invoked by uid 99); 4 Mar 2009 10:20:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2009 02:20:17 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2009 10:20:16 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5BF5F234C4BD for ; Wed, 4 Mar 2009 02:19:56 -0800 (PST) Message-ID: <2026309516.1236161996375.JavaMail.jira@brutus> Date: Wed, 4 Mar 2009 02:19:56 -0800 (PST) From: "Alexander Shigin (JIRA)" To: thrift-dev@incubator.apache.org Subject: [jira] Updated: (THRIFT-96) TSocket.peek fails on FreeBSD In-Reply-To: <507389979.1216997491731.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/THRIFT-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexander Shigin updated THRIFT-96: ----------------------------------- Attachment: thrift-peek-fix-2.patch oops, forget to choose the right radio button > TSocket.peek fails on FreeBSD > ----------------------------- > > Key: THRIFT-96 > URL: https://issues.apache.org/jira/browse/THRIFT-96 > Project: Thrift > Issue Type: Bug > Components: Library (C++) > Environment: FreeBSD > Reporter: Alexander Shigin > Attachments: thrift-freebsd-read.patch, thrift-peek-fix-2.patch, thrift-peek-fix.patch, thrift-peek-fix.patch > > > POSIX says what recv(2) should returns 0 if peer has performed a shutdown. This feature uses in TBufferedTransport > {code} > bool peek() { > if (rBase_ == rBound_) { > setReadBuffer(rBuf_.get(), transport_->read(rBuf_.get(), rBufSize_)); > } > return (rBound_ > rBase_); > } > {code} > The decision works fine on linux, but fails on freebsd. In freebsd, recv returns -1 and errno==ECONNRESET. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.