Closed lqs closed 13 years ago
changed to PyErr_Format.
this commit (4981fda) fix a bug which may cause memory corruption if the request is malformed. use this code to crash a fapws server:
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(('127.0.0.1', 22223))
sock.send('K1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabc')
sock.close()
committed. Thanks for your contribution
When a error occurs in bind() or listen(), raise a exception instead of exit the program entirely.