Changeset 5544

Show
Ignore:
Timestamp:
07/09/12 11:46:07 (7 years ago)
Author:
nitin
Message:

fixed a bug in select, which doesn't close client sockets correctly

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • seattle/branches/nacl_repy/seattlelib/lind_net_calls.py

    r5540 r5544  
    12251225    return False 
    12261226 
    1227   if len(data) == 1: 
     1227  if len(data) == 1: #return True, if data is present... 
     1228    return True 
     1229  elif len(data) == 0: #return True, since it tells that remote socket is closed... 
    12281230    return True 
    12291231  else: 
     
    12691271        retval += 1 
    12701272      else: 
    1271         #Get an interm connection and save it, so when acctually accept_syscall() is called 
     1273        #Get an interim connection and save it, so when actual accept_syscall() is called 
    12721274        #we pass the saved the connection. 
    12731275        if filedescriptortable[fd]['state'] == LISTEN: 
     
    13791381    if err: 
    13801382      errors.append(fd) 
    1381      
     1383 
    13821384    newfd = select_syscall(fd, reads, writes, errors, 0) 
    13831385