Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db29d8a

Browse files
authored
Merge pull request kubernetes-client#142 from mbohlool/master
Remove channel id from exec response in blocking mode
2 parents a2b3d5d + fc8a31b commit db29d8a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kubernetes/client/ws_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,13 @@ def update(self, timeout=0):
168168
data = frame.data
169169
if six.PY3:
170170
data = data.decode("utf-8")
171-
self._all += data
172171
if len(data) > 1:
173172
channel = ord(data[0])
174173
data = data[1:]
175174
if data:
175+
# keeping all messages in the order they received for
176+
# non-blocking call.
177+
self._all += data
176178
if channel not in self._channels:
177179
self._channels[channel] = data
178180
else:

0 commit comments

Comments
 (0)