Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSpawn a thread for WebSocket messages. #6635
Conversation
hoppipolla-critic-bot
commented
Jul 15, 2015
|
Critic review: https://critic.hoppipolla.co.uk/r/5561 This is an external review system which you may optionally use for the code review of your pull request. In order to help critic track your changes, please do not make in-place history rewrites (e.g. via |
|
@bors-servo: r+ Reviewed 1 of 1 files at r1, 1 of 1 files at r2, 1 of 1 files at r3, 1 of 1 files at r4. Comments from the review on Reviewable.io |
|
|
Spawn a thread for WebSocket messages. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6635) <!-- Reviewable:end -->
|
|
|
@bors-servo r=jdm I swear I fixed that… |
|
|
|
|
Spawn a thread for WebSocket messages. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6635) <!-- Reviewable:end -->
|
|
|
One case of #6350, one non-websocket timeout that is a mystery to me, and one error that looks like a legitimate failure that needs correcting:
|
|
@bors-servo: r+ |
|
|
|
Hrm... "when is a file not a file?"
WHEN IT'S A SOCKET! Something else to try... |
|
@bors-servo: retry |
|
|
|
Curses; foiled again... |
|
OK, I suspect we're going to have to actually fix the problem that's causing us to open so many handles instead of just patching over it. |
|
|
There's no real reason to have internal dynamic dispatch inside a trait object.
The receiver will be used from another thread than the WebSocket object in the future.
This needs to happen off a task because we won't be able to access the WebSocket object directly once this code moves to a background thread. There is no behaviour change, because we make sure that self.ready_state is not Connecting in Send().
|
@bors-servo r=jdm |
|
|
Spawn a thread for WebSocket messages. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6635) <!-- Reviewable:end -->
|
|
|
@bors-servo: retry |
Spawn a thread for WebSocket messages. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6635) <!-- Reviewable:end -->
Ms2ger commentedJul 15, 2015