shaoyh / django-simple-captcha

Automatically exported from code.google.com/p/django-simple-captcha
MIT License
0 stars 0 forks source link

Socket Error #51

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello, I just installed and configured django-simple-captcha. But I am getting 
a very strange error. Does it use socket connection? Why?
I am in a computer behind proxy, if I active captch, I get the following error:

Development server is running at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
[27/Jun/2011 17:42:23] "GET /cadastro/usuario HTTP/1.1" 200 5166
Traceback (most recent call last):
  File "c:\python27\lib\site-packages\django\core\servers\basehttp.py", line 284, in run
    self.finish_response()
  File "c:\python27\lib\site-packages\django\core\servers\basehttp.py", line 324, in finish_response
    self.write(data)
  File "c:\python27\lib\site-packages\django\core\servers\basehttp.py", line 420, in write
    self._write(data)
  File "c:\python27\lib\socket.py", line 324, in write
    self.flush()
  File "c:\python27\lib\socket.py", line 303, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 10053] Uma conexÒo estabelecida foi anulada pelo software no 
computador host
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 59121)
Traceback (most recent call last):
  File "c:\python27\lib\SocketServer.py", line 284, in _handle_request_noblock
    self.process_request(request, client_address)
  File "c:\python27\lib\SocketServer.py", line 310, in process_request
    self.finish_request(request, client_address)
  File "c:\python27\lib\SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "c:\python27\lib\site-packages\django\core\servers\basehttp.py", line 570, in __init__
    BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
  File "c:\python27\lib\SocketServer.py", line 641, in __init__
    self.finish()
  File "c:\python27\lib\SocketServer.py", line 694, in finish
    self.wfile.flush()
  File "c:\python27\lib\socket.py", line 303, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 10053] Uma conexÒo estabelecida foi anulada pelo software no 
computador host
----------------------------------------
[27/Jun/2011 17:42:25] "GET /css/style.css HTTP/1.1" 200 2111

In forms.py I just added:

from captcha.fields import CaptchaField
captcha = CaptchaField()

Does it make any external connection?

Original issue reported on code.google.com by thobr...@gmail.com on 27 Jun 2011 at 8:47

GoogleCodeExporter commented 8 years ago
I just reinstalled and everything is fine.

Original comment by thobr...@gmail.com on 28 Jun 2011 at 3:08