Changeset 704 for tools

Show
Ignore:
Timestamp:
11/04/07 15:01:49 (13 months ago)
Author:
michiel
Message:

try to make nc disconnect after sending the data

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tools/nsa/nsa.py

    r703 r704  
    162162                        if r: 
    163163                                (client, addr) = self.sock.accept() 
    164                                 while True: 
     164                                while not done: 
    165165                                        data = client.recv(1024) 
    166166                                        if not data: 
     167                                                done = True 
    167168                                                break 
    168169                                        alldata += data