Skip to content

Commit

Permalink
changed length
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Apr 18, 2018
1 parent f518a9a commit bdffa3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/netius/base/common.py
Expand Up @@ -2149,6 +2149,8 @@ def pcallback(self, event, socket, pool):
# no operations is performed for such conditions
if not pool: return
if not event == "read": return

print("callback")

# runs the de-notify operation clearing the pool from any
# possible extra notification (avoid extra counter)
Expand Down
2 changes: 1 addition & 1 deletion src/netius/pool/common.py
Expand Up @@ -250,7 +250,7 @@ def notify(self):
def denotify(self):
self._read()

def _read(self, length = 8):
def _read(self, length = 1):
if self.closed: return None
return os.read(self._rfileno, length)

Expand Down

0 comments on commit bdffa3c

Please sign in to comment.