fixbug: when ota disable data not write
This commit is contained in:
parent
614eed2bf0
commit
d2f1caeb5d
1 changed files with 4 additions and 0 deletions
|
@ -242,6 +242,8 @@ class TCPRelayHandler(object):
|
||||||
if self._ota_enable:
|
if self._ota_enable:
|
||||||
self._ota_chunk_data(data,
|
self._ota_chunk_data(data,
|
||||||
self._data_to_write_to_remote.append)
|
self._data_to_write_to_remote.append)
|
||||||
|
else:
|
||||||
|
self._data_to_write_to_remote.append(data)
|
||||||
if self._is_local and not self._fastopen_connected and \
|
if self._is_local and not self._fastopen_connected and \
|
||||||
self._config['fast_open']:
|
self._config['fast_open']:
|
||||||
# for sslocal and fastopen, we basically wait for data and use
|
# for sslocal and fastopen, we basically wait for data and use
|
||||||
|
@ -475,6 +477,8 @@ class TCPRelayHandler(object):
|
||||||
else:
|
else:
|
||||||
if self._ota_enable:
|
if self._ota_enable:
|
||||||
self._ota_chunk_data(data, self._write_to_sock_remote)
|
self._ota_chunk_data(data, self._write_to_sock_remote)
|
||||||
|
else:
|
||||||
|
self._write_to_sock(data, self._remote_sock)
|
||||||
return
|
return
|
||||||
|
|
||||||
def _on_local_read(self):
|
def _on_local_read(self):
|
||||||
|
|
Loading…
Reference in a new issue