Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
4b5d68bd
Commit
4b5d68bd
authored
Feb 05, 1999
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bug in sized input collection which caused dropped bytes.
parent
7318943a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
ZServer/medusa/asynchat.py
ZServer/medusa/asynchat.py
+5
-3
lib/python/ZServer/medusa/asynchat.py
lib/python/ZServer/medusa/asynchat.py
+5
-3
No files found.
ZServer/medusa/asynchat.py
View file @
4b5d68bd
# -*- Mode: Python; tab-width: 4 -*-
# $Id: asynchat.py,v 1.
5 1999/01/18 22:43:43
amos Exp $
# $Id: asynchat.py,v 1.
6 1999/02/05 02:14:39
amos Exp $
# Author: Sam Rushing <rushing@nightmare.com>
# ======================================================================
...
...
@@ -118,7 +118,8 @@ class async_chat (asyncore.dispatcher):
# until we have read that much. ac_in_buffer_read tracks
# how much data has been read.
if
type
(
terminator
)
==
types
.
IntType
:
self
.
ac_in_buffer_read
=
self
.
ac_in_buffer_read
+
len
(
data
)
self
.
ac_in_buffer_read
=
self
.
ac_in_buffer_read
+
\
len
(
self
.
ac_in_buffer
)
if
self
.
ac_in_buffer_read
<
self
.
terminator
:
self
.
collect_incoming_data
(
self
.
ac_in_buffer
)
self
.
ac_in_buffer
=
''
...
...
@@ -132,8 +133,9 @@ class async_chat (asyncore.dispatcher):
self
.
collect_incoming_data
(
self
.
ac_in_buffer
[:
border
])
self
.
ac_in_buffer
=
self
.
ac_in_buffer
[
border
:]
self
.
ac_in_buffer_read
=
0
data
=
''
self
.
found_terminator
()
break
continue
terminator_len
=
len
(
terminator
)
# 4 cases:
...
...
lib/python/ZServer/medusa/asynchat.py
View file @
4b5d68bd
# -*- Mode: Python; tab-width: 4 -*-
# $Id: asynchat.py,v 1.
5 1999/01/18 22:43:43
amos Exp $
# $Id: asynchat.py,v 1.
6 1999/02/05 02:14:39
amos Exp $
# Author: Sam Rushing <rushing@nightmare.com>
# ======================================================================
...
...
@@ -118,7 +118,8 @@ class async_chat (asyncore.dispatcher):
# until we have read that much. ac_in_buffer_read tracks
# how much data has been read.
if
type
(
terminator
)
==
types
.
IntType
:
self
.
ac_in_buffer_read
=
self
.
ac_in_buffer_read
+
len
(
data
)
self
.
ac_in_buffer_read
=
self
.
ac_in_buffer_read
+
\
len
(
self
.
ac_in_buffer
)
if
self
.
ac_in_buffer_read
<
self
.
terminator
:
self
.
collect_incoming_data
(
self
.
ac_in_buffer
)
self
.
ac_in_buffer
=
''
...
...
@@ -132,8 +133,9 @@ class async_chat (asyncore.dispatcher):
self
.
collect_incoming_data
(
self
.
ac_in_buffer
[:
border
])
self
.
ac_in_buffer
=
self
.
ac_in_buffer
[
border
:]
self
.
ac_in_buffer_read
=
0
data
=
''
self
.
found_terminator
()
break
continue
terminator_len
=
len
(
terminator
)
# 4 cases:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment