no buffer space available error

Michael Gilfix mgilfix at eecs.tufts.edu
Wed May 8 14:24:53 EDT 2002


  Can you post some more code? I'm having a hard time figuring
out just what your problem (what are you doing before) and can
you post the trace?

              -- Mike

On Wed, May 08 @ 10:42, sebastien wrote:
> Hi,
> 
> I am trying a program that scan all the machines in the network that are ftp server.
> After about 50 to 100 scan, I get the message :
> 
> no buffer space available.
> 
> import timeoutsocket
> timeoutsocket.setDefaultSocketTimeout(5)
> BUFSIZE = 1024
> FTP_PORT = 21
> FTP_DATA_PORT = FTP_PORT - 1
> FTP_DATA_PORT = FTP_DATA_PORT + 50000
> 
> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
> s.setblocking(0)
> 
> try :
>     s.connect((hostname,FTP_PORT))
> except socket.error, why :
>     print 'cannot connect...',why[1]
> 
> 
> This is embedded in a function and I pass the hostname that I want to be tested.
> 
> 
> What do I do wrong ? As I get the message can I flush the buffer ?
> I am running python 2.1.1 on Windows Me and NT.
> 
> Regards,
> Sebastien.
> -- 
> http://mail.python.org/mailman/listinfo/python-list
`-> (s.thuriez)

-- 
Michael Gilfix
mgilfix at eecs.tufts.edu

For my gpg public key:
http://www.eecs.tufts.edu/~mgilfix/contact.html





More information about the Python-list mailing list