Edit report at https://bugs.php.net/bug.php?id=60471&edit=1
ID: 60471 Comment by: patrickalla...@php.net Reported by: lolautruche at gmail dot com Summary: Random "Invalid request (unexpected EOF)" using a router script Status: Open Type: Bug Package: Built-in web server Operating System: Mac OS X 10.7.2 (Lion) PHP Version: 5.4.0RC2 Block user comment: N Private report: N New Comment: I can confirm those messages. It looks like it happens only with Chrome/Chromium. Debugging at the TCP level shows that it comes from empty messages: TCP messages corresponding to port 41767 that generated the error message: [Thu Dec 8 16:48:33 2011] 127.0.0.1:41767 Invalid request (Unexpected EOF) appears below, as captured by Wireshark. No. Time Source Destination Protocol Length Info 1214 196.678104 127.0.0.1 127.0.0.1 TCP 74 41767 > http-alt [SYN] Seq=0 Win=32792 Len=0 MSS=16396 SACK_PERM=1 TSval=209439162 TSecr=0 WS=128 Frame 1214: 74 bytes on wire (592 bits), 74 bytes captured (592 bits) Arrival Time: Dec 8, 2011 16:48:22.673873000 CET Epoch Time: 1323359302.673873000 seconds [Time delta from previous captured frame: 9.255505000 seconds] [Time delta from previous displayed frame: 0.000000000 seconds] [Time since reference or first frame: 196.678104000 seconds] Frame Number: 1214 Frame Length: 74 bytes (592 bits) Capture Length: 74 bytes (592 bits) [Frame is marked: True] [Frame is ignored: False] [Protocols in frame: eth:ip:tcp] [Coloring Rule Name: TCP SYN/FIN] [Coloring Rule String: tcp.flags & 0x02 || tcp.flags.fin == 1] Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst: 00:00:00_00:00:00 (00:00:00:00:00:00) Destination: 00:00:00_00:00:00 (00:00:00:00:00:00) Address: 00:00:00_00:00:00 (00:00:00:00:00:00) .... ...0 .... .... .... .... = IG bit: Individual address (unicast) .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default) Source: 00:00:00_00:00:00 (00:00:00:00:00:00) Address: 00:00:00_00:00:00 (00:00:00:00:00:00) .... ...0 .... .... .... .... = IG bit: Individual address (unicast) .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default) Type: IP (0x0800) Internet Protocol Version 4, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1 (127.0.0.1) Version: 4 Header length: 20 bytes Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport)) 0000 00.. = Differentiated Services Codepoint: Default (0x00) .... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00) Total Length: 60 Identification: 0x6b16 (27414) Flags: 0x02 (Don't Fragment) 0... .... = Reserved bit: Not set .1.. .... = Don't fragment: Set ..0. .... = More fragments: Not set Fragment offset: 0 Time to live: 64 Protocol: TCP (6) Header checksum: 0xd1a3 [correct] [Good: True] [Bad: False] Source: 127.0.0.1 (127.0.0.1) Destination: 127.0.0.1 (127.0.0.1) Transmission Control Protocol, Src Port: 41767 (41767), Dst Port: http-alt (8080), Seq: 0, Len: 0 Source port: 41767 (41767) Destination port: http-alt (8080) [Stream index: 78] Sequence number: 0 (relative sequence number) Header length: 40 bytes Flags: 0x02 (SYN) 000. .... .... = Reserved: Not set ...0 .... .... = Nonce: Not set .... 0... .... = Congestion Window Reduced (CWR): Not set .... .0.. .... = ECN-Echo: Not set .... ..0. .... = Urgent: Not set .... ...0 .... = Acknowledgement: Not set .... .... 0... = Push: Not set .... .... .0.. = Reset: Not set .... .... ..1. = Syn: Set [Expert Info (Chat/Sequence): Connection establish request (SYN): server port http-alt] [Message: Connection establish request (SYN): server port http- alt] [Severity level: Chat] [Group: Sequence] .... .... ...0 = Fin: Not set Window size value: 32792 [Calculated window size: 32792] Checksum: 0xfe30 [validation disabled] [Good Checksum: False] [Bad Checksum: False] Options: (20 bytes) Maximum segment size: 16396 bytes TCP SACK Permitted Option: True Timestamps: TSval 209439162, TSecr 0 Kind: Timestamp (8) Length: 10 Timestamp value: 209439162 Timestamp echo reply: 0 No-Operation (NOP) Window scale: 7 (multiply by 128) Kind: Window Scale (3) Length: 3 Shift count: 7 [Multiplier: 128] 0000 00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00 ..............E. 0010 00 3c 6b 16 40 00 40 06 d1 a3 7f 00 00 01 7f 00 .<k.@.@......... 0020 00 01 a3 27 1f 90 b5 5d a2 ac 00 00 00 00 a0 02 ...'...]........ 0030 80 18 fe 30 00 00 02 04 40 0c 04 02 08 0a 0c 7b ...0....@......{ 0040 c9 ba 00 00 00 00 01 03 03 07 .......... No. Time Source Destination Protocol Length Info 1215 196.678120 127.0.0.1 127.0.0.1 TCP 74 http-alt > 41767 [SYN, ACK] Seq=0 Ack=1 Win=32768 Len=0 MSS=16396 SACK_PERM=1 TSval=209439162 TSecr=209439162 WS=128 Frame 1215: 74 bytes on wire (592 bits), 74 bytes captured (592 bits) Arrival Time: Dec 8, 2011 16:48:22.673889000 CET Epoch Time: 1323359302.673889000 seconds [Time delta from previous captured frame: 0.000016000 seconds] [Time delta from previous displayed frame: 0.000016000 seconds] [Time since reference or first frame: 196.678120000 seconds] Frame Number: 1215 Frame Length: 74 bytes (592 bits) Capture Length: 74 bytes (592 bits) [Frame is marked: True] [Frame is ignored: False] [Protocols in frame: eth:ip:tcp] [Coloring Rule Name: TCP SYN/FIN] [Coloring Rule String: tcp.flags & 0x02 || tcp.flags.fin == 1] Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst: 00:00:00_00:00:00 (00:00:00:00:00:00) Destination: 00:00:00_00:00:00 (00:00:00:00:00:00) Address: 00:00:00_00:00:00 (00:00:00:00:00:00) .... ...0 .... .... .... .... = IG bit: Individual address (unicast) .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default) Source: 00:00:00_00:00:00 (00:00:00:00:00:00) Address: 00:00:00_00:00:00 (00:00:00:00:00:00) .... ...0 .... .... .... .... = IG bit: Individual address (unicast) .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default) Type: IP (0x0800) Internet Protocol Version 4, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1 (127.0.0.1) Version: 4 Header length: 20 bytes Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport)) 0000 00.. = Differentiated Services Codepoint: Default (0x00) .... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00) Total Length: 60 Identification: 0x0000 (0) Flags: 0x02 (Don't Fragment) 0... .... = Reserved bit: Not set .1.. .... = Don't fragment: Set ..0. .... = More fragments: Not set Fragment offset: 0 Time to live: 64 Protocol: TCP (6) Header checksum: 0x3cba [correct] [Good: True] [Bad: False] Source: 127.0.0.1 (127.0.0.1) Destination: 127.0.0.1 (127.0.0.1) Transmission Control Protocol, Src Port: http-alt (8080), Dst Port: 41767 (41767), Seq: 0, Ack: 1, Len: 0 Source port: http-alt (8080) Destination port: 41767 (41767) [Stream index: 78] Sequence number: 0 (relative sequence number) Acknowledgement number: 1 (relative ack number) Header length: 40 bytes Flags: 0x12 (SYN, ACK) 000. .... .... = Reserved: Not set ...0 .... .... = Nonce: Not set .... 0... .... = Congestion Window Reduced (CWR): Not set .... .0.. .... = ECN-Echo: Not set .... ..0. .... = Urgent: Not set .... ...1 .... = Acknowledgement: Set .... .... 0... = Push: Not set .... .... .0.. = Reset: Not set .... .... ..1. = Syn: Set [Expert Info (Chat/Sequence): Connection establish acknowledge (SYN+ACK): server port http-alt] [Message: Connection establish acknowledge (SYN+ACK): server port http-alt] [Severity level: Chat] [Group: Sequence] .... .... ...0 = Fin: Not set Window size value: 32768 [Calculated window size: 32768] Checksum: 0xfe30 [validation disabled] [Good Checksum: False] [Bad Checksum: False] Options: (20 bytes) Maximum segment size: 16396 bytes TCP SACK Permitted Option: True Timestamps: TSval 209439162, TSecr 209439162 Kind: Timestamp (8) Length: 10 Timestamp value: 209439162 Timestamp echo reply: 209439162 No-Operation (NOP) Window scale: 7 (multiply by 128) Kind: Window Scale (3) Length: 3 Shift count: 7 [Multiplier: 128] [SEQ/ACK analysis] [This is an ACK to the segment in frame: 1214] [The RTT to ACK the segment was: 0.000016000 seconds] 0000 00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00 ..............E. 0010 00 3c 00 00 40 00 40 06 3c ba 7f 00 00 01 7f 00 .<..@.@.<....... 0020 00 01 1f 90 a3 27 cd 57 43 e8 b5 5d a2 ad a0 12 .....'.WC..].... 0030 80 00 fe 30 00 00 02 04 40 0c 04 02 08 0a 0c 7b ...0....@......{ 0040 c9 ba 0c 7b c9 ba 01 03 03 07 ...{...... No. Time Source Destination Protocol Length Info 1216 196.678136 127.0.0.1 127.0.0.1 TCP 66 41767 > http-alt [ACK] Seq=1 Ack=1 Win=32896 Len=0 TSval=209439162 TSecr=209439162 Frame 1216: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) Arrival Time: Dec 8, 2011 16:48:22.673905000 CET Epoch Time: 1323359302.673905000 seconds [Time delta from previous captured frame: 0.000016000 seconds] [Time delta from previous displayed frame: 0.000016000 seconds] [Time since reference or first frame: 196.678136000 seconds] Frame Number: 1216 Frame Length: 66 bytes (528 bits) Capture Length: 66 bytes (528 bits) [Frame is marked: True] [Frame is ignored: False] [Protocols in frame: eth:ip:tcp] [Coloring Rule Name: TCP] [Coloring Rule String: tcp] Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst: 00:00:00_00:00:00 (00:00:00:00:00:00) Destination: 00:00:00_00:00:00 (00:00:00:00:00:00) Address: 00:00:00_00:00:00 (00:00:00:00:00:00) .... ...0 .... .... .... .... = IG bit: Individual address (unicast) .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default) Source: 00:00:00_00:00:00 (00:00:00:00:00:00) Address: 00:00:00_00:00:00 (00:00:00:00:00:00) .... ...0 .... .... .... .... = IG bit: Individual address (unicast) .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default) Type: IP (0x0800) Internet Protocol Version 4, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1 (127.0.0.1) Version: 4 Header length: 20 bytes Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport)) 0000 00.. = Differentiated Services Codepoint: Default (0x00) .... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00) Total Length: 52 Identification: 0x6b17 (27415) Flags: 0x02 (Don't Fragment) 0... .... = Reserved bit: Not set .1.. .... = Don't fragment: Set ..0. .... = More fragments: Not set Fragment offset: 0 Time to live: 64 Protocol: TCP (6) Header checksum: 0xd1aa [correct] [Good: True] [Bad: False] Source: 127.0.0.1 (127.0.0.1) Destination: 127.0.0.1 (127.0.0.1) Transmission Control Protocol, Src Port: 41767 (41767), Dst Port: http-alt (8080), Seq: 1, Ack: 1, Len: 0 Source port: 41767 (41767) Destination port: http-alt (8080) [Stream index: 78] Sequence number: 1 (relative sequence number) Acknowledgement number: 1 (relative ack number) Header length: 32 bytes Flags: 0x10 (ACK) 000. .... .... = Reserved: Not set ...0 .... .... = Nonce: Not set .... 0... .... = Congestion Window Reduced (CWR): Not set .... .0.. .... = ECN-Echo: Not set .... ..0. .... = Urgent: Not set .... ...1 .... = Acknowledgement: Set .... .... 0... = Push: Not set .... .... .0.. = Reset: Not set .... .... ..0. = Syn: Not set .... .... ...0 = Fin: Not set Window size value: 257 [Calculated window size: 32896] [Window size scaling factor: 128] Checksum: 0xfe28 [validation disabled] [Good Checksum: False] [Bad Checksum: False] Options: (12 bytes) No-Operation (NOP) No-Operation (NOP) Timestamps: TSval 209439162, TSecr 209439162 Kind: Timestamp (8) Length: 10 Timestamp value: 209439162 Timestamp echo reply: 209439162 [SEQ/ACK analysis] [This is an ACK to the segment in frame: 1215] [The RTT to ACK the segment was: 0.000016000 seconds] 0000 00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00 ..............E. 0010 00 34 6b 17 40 00 40 06 d1 aa 7f 00 00 01 7f 00 .4k.@.@......... 0020 00 01 a3 27 1f 90 b5 5d a2 ad cd 57 43 e9 80 10 ...'...]...WC... 0030 01 01 fe 28 00 00 01 01 08 0a 0c 7b c9 ba 0c 7b ...(.......{...{ 0040 c9 ba .. No. Time Source Destination Protocol Length Info 1589 207.299251 127.0.0.1 127.0.0.1 TCP 66 41767 > http-alt [FIN, ACK] Seq=1 Ack=1 Win=32896 Len=0 TSval=209449783 TSecr=209439162 Frame 1589: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) Arrival Time: Dec 8, 2011 16:48:33.295020000 CET Epoch Time: 1323359313.295020000 seconds [Time delta from previous captured frame: 7.356718000 seconds] [Time delta from previous displayed frame: 10.621115000 seconds] [Time since reference or first frame: 207.299251000 seconds] Frame Number: 1589 Frame Length: 66 bytes (528 bits) Capture Length: 66 bytes (528 bits) [Frame is marked: True] [Frame is ignored: False] [Protocols in frame: eth:ip:tcp] [Coloring Rule Name: TCP SYN/FIN] [Coloring Rule String: tcp.flags & 0x02 || tcp.flags.fin == 1] Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst: 00:00:00_00:00:00 (00:00:00:00:00:00) Destination: 00:00:00_00:00:00 (00:00:00:00:00:00) Address: 00:00:00_00:00:00 (00:00:00:00:00:00) .... ...0 .... .... .... .... = IG bit: Individual address (unicast) .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default) Source: 00:00:00_00:00:00 (00:00:00:00:00:00) Address: 00:00:00_00:00:00 (00:00:00:00:00:00) .... ...0 .... .... .... .... = IG bit: Individual address (unicast) .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default) Type: IP (0x0800) Internet Protocol Version 4, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1 (127.0.0.1) Version: 4 Header length: 20 bytes Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport)) 0000 00.. = Differentiated Services Codepoint: Default (0x00) .... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00) Total Length: 52 Identification: 0x6b18 (27416) Flags: 0x02 (Don't Fragment) 0... .... = Reserved bit: Not set .1.. .... = Don't fragment: Set ..0. .... = More fragments: Not set Fragment offset: 0 Time to live: 64 Protocol: TCP (6) Header checksum: 0xd1a9 [correct] [Good: True] [Bad: False] Source: 127.0.0.1 (127.0.0.1) Destination: 127.0.0.1 (127.0.0.1) Transmission Control Protocol, Src Port: 41767 (41767), Dst Port: http-alt (8080), Seq: 1, Ack: 1, Len: 0 Source port: 41767 (41767) Destination port: http-alt (8080) [Stream index: 78] Sequence number: 1 (relative sequence number) Acknowledgement number: 1 (relative ack number) Header length: 32 bytes Flags: 0x11 (FIN, ACK) 000. .... .... = Reserved: Not set ...0 .... .... = Nonce: Not set .... 0... .... = Congestion Window Reduced (CWR): Not set .... .0.. .... = ECN-Echo: Not set .... ..0. .... = Urgent: Not set .... ...1 .... = Acknowledgement: Set .... .... 0... = Push: Not set .... .... .0.. = Reset: Not set .... .... ..0. = Syn: Not set .... .... ...1 = Fin: Set [Expert Info (Chat/Sequence): Connection finish (FIN)] [Message: Connection finish (FIN)] [Severity level: Chat] [Group: Sequence] Window size value: 257 [Calculated window size: 32896] [Window size scaling factor: 128] Checksum: 0xfe28 [validation disabled] [Good Checksum: False] [Bad Checksum: False] Options: (12 bytes) No-Operation (NOP) No-Operation (NOP) Timestamps: TSval 209449783, TSecr 209439162 Kind: Timestamp (8) Length: 10 Timestamp value: 209449783 Timestamp echo reply: 209439162 0000 00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00 ..............E. 0010 00 34 6b 18 40 00 40 06 d1 a9 7f 00 00 01 7f 00 .4k.@.@......... 0020 00 01 a3 27 1f 90 b5 5d a2 ad cd 57 43 e9 80 11 ...'...]...WC... 0030 01 01 fe 28 00 00 01 01 08 0a 0c 7b f3 37 0c 7b ...(.......{.7.{ 0040 c9 ba .. No. Time Source Destination Protocol Length Info 1590 207.299310 127.0.0.1 127.0.0.1 TCP 66 http-alt > 41767 [FIN, ACK] Seq=1 Ack=2 Win=32768 Len=0 TSval=209449783 TSecr=209449783 Frame 1590: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) Arrival Time: Dec 8, 2011 16:48:33.295079000 CET Epoch Time: 1323359313.295079000 seconds [Time delta from previous captured frame: 0.000059000 seconds] [Time delta from previous displayed frame: 0.000059000 seconds] [Time since reference or first frame: 207.299310000 seconds] Frame Number: 1590 Frame Length: 66 bytes (528 bits) Capture Length: 66 bytes (528 bits) [Frame is marked: True] [Frame is ignored: False] [Protocols in frame: eth:ip:tcp] [Coloring Rule Name: TCP SYN/FIN] [Coloring Rule String: tcp.flags & 0x02 || tcp.flags.fin == 1] Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst: 00:00:00_00:00:00 (00:00:00:00:00:00) Destination: 00:00:00_00:00:00 (00:00:00:00:00:00) Address: 00:00:00_00:00:00 (00:00:00:00:00:00) .... ...0 .... .... .... .... = IG bit: Individual address (unicast) .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default) Source: 00:00:00_00:00:00 (00:00:00:00:00:00) Address: 00:00:00_00:00:00 (00:00:00:00:00:00) .... ...0 .... .... .... .... = IG bit: Individual address (unicast) .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default) Type: IP (0x0800) Internet Protocol Version 4, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1 (127.0.0.1) Version: 4 Header length: 20 bytes Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport)) 0000 00.. = Differentiated Services Codepoint: Default (0x00) .... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00) Total Length: 52 Identification: 0x8a53 (35411) Flags: 0x02 (Don't Fragment) 0... .... = Reserved bit: Not set .1.. .... = Don't fragment: Set ..0. .... = More fragments: Not set Fragment offset: 0 Time to live: 64 Protocol: TCP (6) Header checksum: 0xb26e [correct] [Good: True] [Bad: False] Source: 127.0.0.1 (127.0.0.1) Destination: 127.0.0.1 (127.0.0.1) Transmission Control Protocol, Src Port: http-alt (8080), Dst Port: 41767 (41767), Seq: 1, Ack: 2, Len: 0 Source port: http-alt (8080) Destination port: 41767 (41767) [Stream index: 78] Sequence number: 1 (relative sequence number) Acknowledgement number: 2 (relative ack number) Header length: 32 bytes Flags: 0x11 (FIN, ACK) 000. .... .... = Reserved: Not set ...0 .... .... = Nonce: Not set .... 0... .... = Congestion Window Reduced (CWR): Not set .... .0.. .... = ECN-Echo: Not set .... ..0. .... = Urgent: Not set .... ...1 .... = Acknowledgement: Set .... .... 0... = Push: Not set .... .... .0.. = Reset: Not set .... .... ..0. = Syn: Not set .... .... ...1 = Fin: Set [Expert Info (Chat/Sequence): Connection finish (FIN)] [Message: Connection finish (FIN)] [Severity level: Chat] [Group: Sequence] Window size value: 256 [Calculated window size: 32768] [Window size scaling factor: 128] Checksum: 0xfe28 [validation disabled] [Good Checksum: False] [Bad Checksum: False] Options: (12 bytes) No-Operation (NOP) No-Operation (NOP) Timestamps: TSval 209449783, TSecr 209449783 Kind: Timestamp (8) Length: 10 Timestamp value: 209449783 Timestamp echo reply: 209449783 [SEQ/ACK analysis] [This is an ACK to the segment in frame: 1589] [The RTT to ACK the segment was: 0.000059000 seconds] 0000 00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00 ..............E. 0010 00 34 8a 53 40 00 40 06 b2 6e 7f 00 00 01 7f 00 .4.S@.@..n...... 0020 00 01 1f 90 a3 27 cd 57 43 e9 b5 5d a2 ae 80 11 .....'.WC..].... 0030 01 00 fe 28 00 00 01 01 08 0a 0c 7b f3 37 0c 7b ...(.......{.7.{ 0040 f3 37 .7 No. Time Source Destination Protocol Length Info 1591 207.299319 127.0.0.1 127.0.0.1 TCP 66 41767 > http-alt [ACK] Seq=2 Ack=2 Win=32896 Len=0 TSval=209449783 TSecr=209449783 Frame 1591: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) Arrival Time: Dec 8, 2011 16:48:33.295088000 CET Epoch Time: 1323359313.295088000 seconds [Time delta from previous captured frame: 0.000009000 seconds] [Time delta from previous displayed frame: 0.000009000 seconds] [Time since reference or first frame: 207.299319000 seconds] Frame Number: 1591 Frame Length: 66 bytes (528 bits) Capture Length: 66 bytes (528 bits) [Frame is marked: True] [Frame is ignored: False] [Protocols in frame: eth:ip:tcp] [Coloring Rule Name: TCP] [Coloring Rule String: tcp] Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst: 00:00:00_00:00:00 (00:00:00:00:00:00) Destination: 00:00:00_00:00:00 (00:00:00:00:00:00) Address: 00:00:00_00:00:00 (00:00:00:00:00:00) .... ...0 .... .... .... .... = IG bit: Individual address (unicast) .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default) Source: 00:00:00_00:00:00 (00:00:00:00:00:00) Address: 00:00:00_00:00:00 (00:00:00:00:00:00) .... ...0 .... .... .... .... = IG bit: Individual address (unicast) .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default) Type: IP (0x0800) Internet Protocol Version 4, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1 (127.0.0.1) Version: 4 Header length: 20 bytes Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport)) 0000 00.. = Differentiated Services Codepoint: Default (0x00) .... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00) Total Length: 52 Identification: 0x6b19 (27417) Flags: 0x02 (Don't Fragment) 0... .... = Reserved bit: Not set .1.. .... = Don't fragment: Set ..0. .... = More fragments: Not set Fragment offset: 0 Time to live: 64 Protocol: TCP (6) Header checksum: 0xd1a8 [correct] [Good: True] [Bad: False] Source: 127.0.0.1 (127.0.0.1) Destination: 127.0.0.1 (127.0.0.1) Transmission Control Protocol, Src Port: 41767 (41767), Dst Port: http-alt (8080), Seq: 2, Ack: 2, Len: 0 Source port: 41767 (41767) Destination port: http-alt (8080) [Stream index: 78] Sequence number: 2 (relative sequence number) Acknowledgement number: 2 (relative ack number) Header length: 32 bytes Flags: 0x10 (ACK) 000. .... .... = Reserved: Not set ...0 .... .... = Nonce: Not set .... 0... .... = Congestion Window Reduced (CWR): Not set .... .0.. .... = ECN-Echo: Not set .... ..0. .... = Urgent: Not set .... ...1 .... = Acknowledgement: Set .... .... 0... = Push: Not set .... .... .0.. = Reset: Not set .... .... ..0. = Syn: Not set .... .... ...0 = Fin: Not set Window size value: 257 [Calculated window size: 32896] [Window size scaling factor: 128] Checksum: 0xfe28 [validation disabled] [Good Checksum: False] [Bad Checksum: False] Options: (12 bytes) No-Operation (NOP) No-Operation (NOP) Timestamps: TSval 209449783, TSecr 209449783 Kind: Timestamp (8) Length: 10 Timestamp value: 209449783 Timestamp echo reply: 209449783 [SEQ/ACK analysis] [This is an ACK to the segment in frame: 1590] [The RTT to ACK the segment was: 0.000009000 seconds] 0000 00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00 ..............E. 0010 00 34 6b 19 40 00 40 06 d1 a8 7f 00 00 01 7f 00 .4k.@.@......... 0020 00 01 a3 27 1f 90 b5 5d a2 ae cd 57 43 ea 80 10 ...'...]...WC... 0030 01 01 fe 28 00 00 01 01 08 0a 0c 7b f3 37 0c 7b ...(.......{.7.{ 0040 f3 37 .7 Previous Comments: ------------------------------------------------------------------------ [2011-12-08 16:24:21] lolautruche at gmail dot com This issue seems to happen only with Google Chrome ------------------------------------------------------------------------ [2011-12-08 15:01:09] lolautruche at gmail dot com Description: ------------ >From time to time, built-in server with router script logs this kind of stuff : [Thu Dec 8 13:39:29 2011] 127.0.0.1:50358 Invalid request (Unexpected EOF) This happens quite randomly, whatever the script has a close tag or not, whatever it has a blank line after close tag or not. Test script: --------------- php -S localhost:8000 router.php Actual result: -------------- [Thu Dec 8 13:39:29 2011] 127.0.0.1:50358 Invalid request (Unexpected EOF) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60471&edit=1