bugGNUstep - Bugs: bug #33934, WebServer (v1.4.1) stops when...

Group
 
 

bug #33934: WebServer (v1.4.1) stops when getting malformed request

Submitter:  T.Somequare <tsomeqdev>
Submitted:  Wed 03 Aug 2011 05:49:55 AM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  In Test
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 04 Aug 2011 06:18:30 AM UTC, comment #2: 

Thanks for replying.

I updated my local copy to the latest revision (33693).
But it did not solve the problem.

I made a small program to reproduce this, because it`s not easy to do it manually.
Please use for a help to understand .



T.Somequare <tsomeqdev>
Thu 04 Aug 2011 04:45:37 AM UTC, comment #1: 

Thanks for reminding me about that ... the code in svn trunk should be OK as it was fixed for a similar issue a while back (I just tried your test and couldn't reproduce the problem) ... I have made a 1.4.2 release from trunk which will probably fix things for you.  Please try it and let us know how it works.

Richard Frith-Macdonald <CaS>
Group Member
Wed 03 Aug 2011 05:49:55 AM UTC, original submission:  

Dear maintainers.


I found the WebServer had crashed with an Exception when receiving bad request.
The promot prints message "NAME:NSFileHandleOperationException REASON:read already in progress" .


to reproduce this:
1. Start testWebserver. (using port 55555 for test here)
2. Type from other terminal on the same host like below.
---
$ telnet 127.0.0.1 55555

>Trying 127.0.0.1 ...
>Connected to 127.0.0.1 (127.0.0.1).
>Escape character is '^]'.

GET / HTTP/1.1

---
^ Keep waiting here. Only input "GET / HTTP/1.1¥n¥n" then stop typing.


The exception is raised in code of file "WebServerConnection.m" (svn rev:33581).
---
- (void) _doRead
{
    [handle readInBackgroundAndNotify]; /// <=== here
}
---                                                                               


Regards.


T.Somequare <tsomeqdev>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #23738:  fetch_test.php added by tsomeqdev (231B - text/php)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by CaS (Posted a comment)
  • -email is unavailable- added by ayers
  • -email is unavailable- added by tsomeqdev (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-08-04 tsomeqdev Attached File- Added fetch_test.php, #23738
    2011-08-04 CaS StatusNone Fixed
        Open/ClosedOpen In Test
    2011-08-03 ayers Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code