/[meteor]/googlecode.com/svn/trunk/Meteor/Connection.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /googlecode.com/svn/trunk/Meteor/Connection.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 46 by knops.gerd, Fri Feb 1 21:22:03 2008 UTC revision 47 by knops.gerd, Mon Feb 4 21:06:42 2008 UTC
# Line 111  sub newFromServer { Line 111  sub newFromServer {
111          $self->{'writeBuffer'}='';          $self->{'writeBuffer'}='';
112          $self->{'readBuffer'}='';          $self->{'readBuffer'}='';
113                    
114            $self->{'bytesWritten'}=0;
115            
116          push(@Connections,$self);          push(@Connections,$self);
117                    
118          &::syslog('debug',"New %s for %s",ref($self),$socket->{'connection'}->{'remoteIP'});          &::syslog('debug',"New %s for %s",ref($self),$socket->{'connection'}->{'remoteIP'});
# Line 224  sub checkHandleBits { Line 226  sub checkHandleBits {
226                  if(defined($bytesWritten) && $bytesWritten>0)                  if(defined($bytesWritten) && $bytesWritten>0)
227                  {                  {
228                          $::Statistics->{'total_outbound_bytes'}+=$bytesWritten;                          $::Statistics->{'total_outbound_bytes'}+=$bytesWritten;
229                            $self->{'bytesWritten'}+=$bytesWritten;
230                          $self->{'writeBuffer'}=substr($self->{'writeBuffer'},$bytesWritten);                          $self->{'writeBuffer'}=substr($self->{'writeBuffer'},$bytesWritten);
231                          if(length($self->{'writeBuffer'})==0)                          if(length($self->{'writeBuffer'})==0)
232                          {                          {

Legend:
Removed from v.46  
changed lines
  Added in v.47

  ViewVC Help
Powered by ViewVC 1.1.26