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

Group
 
 

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

Submitter:  T.Somequare <tsomeqdev>
Submitted:  Mon 12 Sep 2011 09:31:18 AM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Item Group:  Change Request Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2011-10-01 CaS StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code