File tree Expand file tree Collapse file tree 4 files changed +19
-3
lines changed Expand file tree Collapse file tree 4 files changed +19
-3
lines changed Original file line number Diff line number Diff line change
1
+ # v1.0.0
2
+ - Bugfix: blocking exec call should remove channel metadata #140
3
+ - Add close method to websocket api of interactive exec #145
4
+
1
5
# v1.0.0b3
2
6
- Bugfix: Missing websocket-client dependency #131
3
7
Original file line number Diff line number Diff line change @@ -16,8 +16,9 @@ should be on the same branch. To update an existing branch:
16
16
17
17
``` bash
18
18
export RELEASE_BRANCH=release-x.x
19
- git checkout RELEASE_BRANCH
19
+ git checkout $ RELEASE_BRANCH
20
20
git fetch upstream
21
+ git rebase upstream/$RELEASE_BRANCH
21
22
git pull upstream master
22
23
```
23
24
@@ -64,7 +65,7 @@ and commit changes (should be only version number changes) to the release branch
64
65
Name the commit something like "Update version constants for XXX release".
65
66
66
67
``` bash
67
- git push upstream RELEASE_BRANCH
68
+ git push upstream $ RELEASE_BRANCH
68
69
```
69
70
70
71
## Make distribution packages
Original file line number Diff line number Diff line change 92
92
resp .write_stdin ("whoami\n " )
93
93
user = resp .readline_stdout (timeout = 3 )
94
94
print ("Server user is: %s" % user )
95
+ resp .close ()
Original file line number Diff line number Diff line change @@ -168,11 +168,13 @@ def update(self, timeout=0):
168
168
data = frame .data
169
169
if six .PY3 :
170
170
data = data .decode ("utf-8" )
171
- self ._all += data
172
171
if len (data ) > 1 :
173
172
channel = ord (data [0 ])
174
173
data = data [1 :]
175
174
if data :
175
+ # keeping all messages in the order they received for
176
+ # non-blocking call.
177
+ self ._all += data
176
178
if channel not in self ._channels :
177
179
self ._channels [channel ] = data
178
180
else :
@@ -189,6 +191,14 @@ def run_forever(self, timeout=None):
189
191
while self .is_open ():
190
192
self .update (timeout = None )
191
193
194
+ def close (self , ** kwargs ):
195
+ """
196
+ close websocket connection.
197
+ """
198
+ self ._connected = False
199
+ if self .sock :
200
+ self .sock .close (** kwargs )
201
+
192
202
193
203
WSResponse = collections .namedtuple ('WSResponse' , ['data' ])
194
204
You can’t perform that action at this time.
0 commit comments