Skip to content

Problem: websocket might be unresponsive#2413

Merged
shahbazn merged 1 commit intobigchaindb:masterfrom
vrde:websocket-really-async
Jul 26, 2018
Merged

Problem: websocket might be unresponsive#2413
shahbazn merged 1 commit intobigchaindb:masterfrom
vrde:websocket-really-async

Conversation

@vrde
Copy link
Copy Markdown
Contributor

@vrde vrde commented Jul 26, 2018

Solution: It might be related on how aiohttp 2.x handles send_str.
AFAIK the call send_str was not "fully async". In aiohttp 3.x they
changed it:

send_str(), send_bytes(), send_json(), ping() and pong() are genuine
async functions now. (#2475)

So this patch adds support for aiohttp 3.x, and uses the send_str
coroutine.

Solution: It might be related on how aiohttp 2.x handles `send_str`.
AFAIK the call `send_str` was not "fully async". In aiohttp 3.x they
[changed it][1]:

> send_str(), send_bytes(), send_json(), ping() and pong() are genuine
async functions now. (bigchaindb#2475)

So this patch adds support for aiohttp 3.x, and uses the `send_str`
coroutine.

[1]: https://github.com/aio-libs/aiohttp/blob/master/HISTORY.rst#deprecations-and-removals-1
@vrde vrde requested a review from shahbazn July 26, 2018 13:13
@codecov-io
Copy link
Copy Markdown

codecov-io commented Jul 26, 2018

Codecov Report

Merging #2413 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master    #2413   +/-   ##
=======================================
  Coverage   86.86%   86.86%           
=======================================
  Files          38       38           
  Lines        2169     2169           
=======================================
  Hits         1884     1884           
  Misses        285      285

@shahbazn shahbazn merged commit af2bf61 into bigchaindb:master Jul 26, 2018
@vrde vrde deleted the websocket-really-async branch July 26, 2018 13:30
@vrde
Copy link
Copy Markdown
Contributor Author

vrde commented Jul 26, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants