linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: andros@netapp.com
To: iisaman@netapp.com
Cc: linux-nfs@vger.kernel.org
Subject: [PATCH 1/6] PYNFS rpc drop fix
Date: Tue, 29 May 2012 17:57:54 -0400	[thread overview]
Message-ID: <1338328679-28837-2-git-send-email-andros@netapp.com> (raw)
In-Reply-To: <1338328679-28837-1-git-send-email-andros@netapp.com>

From: Fred Isaman <iisaman@netapp.com>

Signed-off-by: Fred Isaman <iisaman@netapp.com>
---
 rpc/rpc.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/rpc/rpc.py b/rpc/rpc.py
index 38efcd8..3166632 100644
--- a/rpc/rpc.py
+++ b/rpc/rpc.py
@@ -514,7 +514,7 @@ class ConnectionHandler(object):
                         data = self.sockets[fd].recv_records(self.rsize)
                     except socket.error:
                         data = None
-                    if data:
+                    if data is not None:
                         self._event_read(data, fd)
                     else:
                         self._event_close(fd)
-- 
1.7.7.6


  reply	other threads:[~2012-06-01 21:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-29 21:57 [PATCH 0/6] PYNFS various patches andros
2012-05-29 21:57 ` andros [this message]
2012-05-29 21:57 ` [PATCH 2/6] PYNFS fix rpcgen andros
2012-05-29 21:57 ` [PATCH 3/6] PYNFS use loopback addresses for MDS<->DS communication andros
2012-06-01 21:57   ` Adamson, Dros
2012-05-29 21:57 ` [PATCH 4/6] PYNFS use requested iomode on layoutget andros
2012-05-29 21:57 ` [PATCH 5/6] PYNFS: add mdsthreshold to file layout server andros
2012-05-29 21:57 ` [PATCH 6/6] PYNFS implement FREE_STATEID and TEST_STATEID operations andros

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1338328679-28837-2-git-send-email-andros@netapp.com \
    --to=andros@netapp.com \
    --cc=iisaman@netapp.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).