Changeset 6644

Show
Ignore:
Timestamp:
06/18/09 15:13:28 (9 months ago)
Author:
metamorph68
Message:

Fixed harbor idle deconnection..

Location:
branches/bugfix-0.9.1
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/bugfix-0.9.1/CHANGES

    r6643 r6644  
    77 - Fixed append operator. (#284) 
    88 - fixed OSS compilation for non-linux systems. 
     9 - Disconnect idle harbor sources after timeout has expired. 
     10   Thanks to Roman Savrulin for reporting and fixing ! 
    911 
    10120.9.0 (01-03-2009) 
  • branches/bugfix-0.9.1/src/sources/harbor_input.ml

    r6390 r6644  
    103103            if l=[] then begin 
    104104              self#log#f 4 "No network activity for %d second(s)." n ; 
    105               wait (n+1) 
     105              if float n >= Harbor.conf_timeout#get then 
     106               begin 
     107                self#log#f 4 "network activity timeout! disconnecting source" ; 
     108                self#disconnect 
     109               end 
     110              else 
     111               wait (n+1) 
    106112            end 
    107113        in wait 1 
     
    133139    self#disconnect ; 
    134140    try 
    135       Unix.shutdown socket Unix.SHUTDOWN_ALL ; 
    136141      Unix.close socket 
    137142    with