[issue29385] Sockets Crashes or Memory Corruption

INADA Naoki report at bugs.python.org
Mon Jan 30 02:09:58 EST 2017


INADA Naoki added the comment:

I can't reproduce it because of some reason.

1. While you report it affects Python 3.3~3.7, the script doesn't work on Python 3.7
2. I've fixed webserver.py to work on Python 3, but it uses very old (draft) websocket protocol.  Current browser doesn't send headers like "Sec-WebSocket-Key1".
3. Even if handshake succeed, you can't send `\xff`*10 directly.  You should wrap it with "frame", specified in RFC.

I can't understand what "Close/Crash" means.
But I propose you to use websocket libraries, or read protocol specification carefully.
WebSocket is not "raw TCP socket after handshake", it's framed protocol on top of TCP (or other stream protocol).

----------
nosy: +inada.naoki
resolution:  -> not a bug
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29385>
_______________________________________


More information about the Python-bugs-list mailing list