Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

check if the inputbuffer is defined RT:60007

  • Loading branch information...
commit bc633d5d6d7abc61f70ac4e61f96f686725f3d99 1 parent c2f4631
@miyagawa authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Starman/
2  lib/Starman/
@@ -269,7 +269,7 @@ sub _read_headers {
# Do we have a full header in the buffer?
# This is before sysread so we don't read if we have a pipelined request
# waiting in the buffer
- last if $self->{client}->{inputbuf} =~ /$CRLF$CRLF/s;
+ last if defined $self->{client}->{inputbuf} && $self->{client}->{inputbuf} =~ /$CRLF$CRLF/s;
# If not, read some data
my $read = sysread $self->{server}->{client}, my $buf, CHUNKSIZE;
Please sign in to comment.
Something went wrong with that request. Please try again.