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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitted by:  T.Somequare <tsomeqdev>
Submitted on:  Wed 03 Aug 2011 05:49:55 AM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: In Test

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>
Project 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>

 

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
  • -unavailable- added by CaS (Posted a comment)
  • -unavailable- added by ayers
  • -unavailable- added by tsomeqdev (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 04 Aug 2011 06:00:36 AM UTCtsomeqdevAttached File-=>Added fetch_test.php, #23738
    Thu 04 Aug 2011 04:45:37 AM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>In Test
    Wed 03 Aug 2011 10:03:18 AM UTCayersCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1