bugGNUstep - Bugs: bug #34272, WebServer (v1.4.4) has no support...

 
 

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

bug #34272: WebServer (v1.4.4) has no support of specifying interface to be listened

Submitted by:  T.Somequare <tsomeqdev>
Submitted on:  Mon 12 Sep 2011 09:31:18 AM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Item Group: Change RequestStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sat 01 Oct 2011 06:32:54 AM UTC, comment #2:

Thanks .
I saw the change in svn repository .

T.Somequare <tsomeqdev>
Sat 01 Oct 2011 06:23:59 AM UTC, comment #1:

Good idea ... I made a new release with an API change to set the listening address at the same time as the port.

Richard Frith-Macdonald <CaS>
Project Member
Mon 12 Sep 2011 09:31:18 AM UTC, original submission:

Hi.

I think, other web server has a section of configuration to specify address listened.

-- Apache`s example --
Listen *:80 #Any addresses
Listen 192.168.0.1:80 #can accept connection only from LAN
--

This is useful if the server has two or more global addresses ( IP alias ).
It enables parallel running of different web server instances on ONE machine.

But WebServer library currently does not support such case....
The code is written :
--
WebServer.m (Near line 1440)

_listener = [NSFileHandle fileHandleAsServerAtAddress: nil
service: _port
protocol: @"tcp"];

--

How about adding a new Method ?
@interface WebServer
...
- (void) setListenAddress:(NSString*)address
@end

regards.

T.Somequare <tsomeqdev>

 

No files currently attached

 

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 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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 01 Oct 2011 06:23:59 AM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1