dfeb023bac22ae77a08b917c297a03de1e2da9eb,local/server/streamlit/local/Proxy.py,Proxy,_client_ws_handler,#Proxy#Any#,247

Before Change


                    pass
            print("Received the close message for "%s". Now removing the final queue." % report_name)
        except concurrent.futures.CancelledError:
            print("CancelledError in _client_ws_handler")
            pass

        if connection != None:
            self._remove_client(connection, queue)

After Change


                try:
                    msg = await ws.receive(timeout=throttle_secs)
                    if msg.type != WSMsgType.CLOSE:
                        raise RuntimeError(f"Unknown message type: {msg.type}")
                    break
                except asyncio.TimeoutError:
                    pass
        except concurrent.futures.CancelledError:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: streamlit/streamlit
Commit Name: dfeb023bac22ae77a08b917c297a03de1e2da9eb
Time: 2018-04-20
Author: adrien.g.treuille@gmail.com
File Name: local/server/streamlit/local/Proxy.py
Class Name: Proxy
Method Name: _client_ws_handler


Project Name: streamlit/streamlit
Commit Name: 41a4175456aba272d9b49c8576c705b1faad34c4
Time: 2018-06-18
Author: adrien.g.treuille@gmail.com
File Name: lib/streamlit/proxy/LocalWebSocket.py
Class Name: LocalWebSocket
Method Name: on_message


Project Name: deepmipt/DeepPavlov
Commit Name: 3b3f8bd00c463e441600673141ff2de608880c9a
Time: 2018-02-05
Author: yoptar@gmail.com
File Name: deeppavlov/datasets/dialog_dataset.py
Class Name: DialogDataset
Method Name: batch_generator