ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/lib/AnyEvent/Handle.pm
(Generate patch)

Comparing AnyEvent/lib/AnyEvent/Handle.pm (file contents):
Revision 1.44 by root, Thu May 29 00:00:07 2008 UTC vs.
Revision 1.46 by root, Thu May 29 00:22:36 2008 UTC

125=item timeout => $fractional_seconds 125=item timeout => $fractional_seconds
126 126
127If non-zero, then this enables an "inactivity" timeout: whenever this many 127If non-zero, then this enables an "inactivity" timeout: whenever this many
128seconds pass without a successful read or write on the underlying file 128seconds pass without a successful read or write on the underlying file
129handle, the C<on_timeout> callback will be invoked (and if that one is 129handle, the C<on_timeout> callback will be invoked (and if that one is
130missing, an C<ETIMEDOUT> errror will be raised). 130missing, an C<ETIMEDOUT> error will be raised).
131 131
132Note that timeout processing is also active when you currently do not have 132Note that timeout processing is also active when you currently do not have
133any outstanding read or write requests: If you plan to keep the connection 133any outstanding read or write requests: If you plan to keep the connection
134idle then you should disable the timout temporarily or ignore the timeout 134idle then you should disable the timout temporarily or ignore the timeout
135in the C<on_timeout> callback. 135in the C<on_timeout> callback.
155isn't finished). 155isn't finished).
156 156
157=item read_size => <bytes> 157=item read_size => <bytes>
158 158
159The default read block size (the amount of bytes this module will try to read 159The default read block size (the amount of bytes this module will try to read
160on each [loop iteration). Default: C<4096>. 160during each (loop iteration). Default: C<8192>.
161 161
162=item low_water_mark => <bytes> 162=item low_water_mark => <bytes>
163 163
164Sets the amount of bytes (default: C<0>) that make up an "empty" write 164Sets the amount of bytes (default: C<0>) that make up an "empty" write
165buffer: If the write reaches this size or gets even samller it is 165buffer: If the write reaches this size or gets even samller it is
238} 238}
239 239
240sub _shutdown { 240sub _shutdown {
241 my ($self) = @_; 241 my ($self) = @_;
242 242
243 delete $self->{_tw};
243 delete $self->{_rw}; 244 delete $self->{_rw};
244 delete $self->{_ww}; 245 delete $self->{_ww};
245 delete $self->{fh}; 246 delete $self->{fh};
246} 247}
247 248

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines