OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [doc/] [html/] [ref/] [net-httpd-configuration.html] - Diff between revs 28 and 174

Only display areas with differences | Details | Blame | View Log

Rev 28 Rev 174
<!-- Copyright (C) 2003 Red Hat, Inc.                                -->
<!-- Copyright (C) 2003 Red Hat, Inc.                                -->
<!-- This material may be distributed only subject to the terms      -->
<!-- This material may be distributed only subject to the terms      -->
<!-- and conditions set forth in the Open Publication License, v1.0  -->
<!-- and conditions set forth in the Open Publication License, v1.0  -->
<!-- or later (the latest version is presently available at          -->
<!-- or later (the latest version is presently available at          -->
<!-- http://www.opencontent.org/openpub/).                           -->
<!-- http://www.opencontent.org/openpub/).                           -->
<!-- Distribution of the work or derivative of the work in any       -->
<!-- Distribution of the work or derivative of the work in any       -->
<!-- standard (paper) book form is prohibited unless prior           -->
<!-- standard (paper) book form is prohibited unless prior           -->
<!-- permission is obtained from the copyright holder.               -->
<!-- permission is obtained from the copyright holder.               -->
<HTML
<HTML
><HEAD
><HEAD
><TITLE
><TITLE
>Server Configuration</TITLE
>Server Configuration</TITLE
><meta name="MSSmartTagsPreventParsing" content="TRUE">
><meta name="MSSmartTagsPreventParsing" content="TRUE">
<META
<META
NAME="GENERATOR"
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
"><LINK
"><LINK
REL="HOME"
REL="HOME"
TITLE="eCos Reference Manual"
TITLE="eCos Reference Manual"
HREF="ecos-ref.html"><LINK
HREF="ecos-ref.html"><LINK
REL="UP"
REL="UP"
TITLE="Embedded HTTP Server"
TITLE="Embedded HTTP Server"
HREF="net-httpd-chapter.html"><LINK
HREF="net-httpd-chapter.html"><LINK
REL="PREVIOUS"
REL="PREVIOUS"
TITLE="Server Organization"
TITLE="Server Organization"
HREF="net-httpd-organization.html"><LINK
HREF="net-httpd-organization.html"><LINK
REL="NEXT"
REL="NEXT"
TITLE="Support Functions and Macros"
TITLE="Support Functions and Macros"
HREF="net-httpd-html.html"></HEAD
HREF="net-httpd-html.html"></HEAD
><BODY
><BODY
CLASS="SECT1"
CLASS="SECT1"
BGCOLOR="#FFFFFF"
BGCOLOR="#FFFFFF"
TEXT="#000000"
TEXT="#000000"
LINK="#0000FF"
LINK="#0000FF"
VLINK="#840084"
VLINK="#840084"
ALINK="#0000FF"
ALINK="#0000FF"
><DIV
><DIV
CLASS="NAVHEADER"
CLASS="NAVHEADER"
><TABLE
><TABLE
SUMMARY="Header navigation table"
SUMMARY="Header navigation table"
WIDTH="100%"
WIDTH="100%"
BORDER="0"
BORDER="0"
CELLPADDING="0"
CELLPADDING="0"
CELLSPACING="0"
CELLSPACING="0"
><TR
><TR
><TH
><TH
COLSPAN="3"
COLSPAN="3"
ALIGN="center"
ALIGN="center"
>eCos Reference Manual</TH
>eCos Reference Manual</TH
></TR
></TR
><TR
><TR
><TD
><TD
WIDTH="10%"
WIDTH="10%"
ALIGN="left"
ALIGN="left"
VALIGN="bottom"
VALIGN="bottom"
><A
><A
HREF="net-httpd-organization.html"
HREF="net-httpd-organization.html"
ACCESSKEY="P"
ACCESSKEY="P"
>Prev</A
>Prev</A
></TD
></TD
><TD
><TD
WIDTH="80%"
WIDTH="80%"
ALIGN="center"
ALIGN="center"
VALIGN="bottom"
VALIGN="bottom"
>Chapter 48. Embedded HTTP Server</TD
>Chapter 48. Embedded HTTP Server</TD
><TD
><TD
WIDTH="10%"
WIDTH="10%"
ALIGN="right"
ALIGN="right"
VALIGN="bottom"
VALIGN="bottom"
><A
><A
HREF="net-httpd-html.html"
HREF="net-httpd-html.html"
ACCESSKEY="N"
ACCESSKEY="N"
>Next</A
>Next</A
></TD
></TD
></TR
></TR
></TABLE
></TABLE
><HR
><HR
ALIGN="LEFT"
ALIGN="LEFT"
WIDTH="100%"></DIV
WIDTH="100%"></DIV
><DIV
><DIV
CLASS="SECT1"
CLASS="SECT1"
><H1
><H1
CLASS="SECT1"
CLASS="SECT1"
><A
><A
NAME="NET-HTTPD-CONFIGURATION">Server Configuration</H1
NAME="NET-HTTPD-CONFIGURATION">Server Configuration</H1
><P
><P
>The HTTP server has a number of configuration options:</P
>The HTTP server has a number of configuration options:</P
><DIV
><DIV
CLASS="SECT2"
CLASS="SECT2"
><H2
><H2
CLASS="SECT2"
CLASS="SECT2"
><A
><A
NAME="AEN15263"><TT
NAME="AEN15263"><TT
CLASS="LITERAL"
CLASS="LITERAL"
>CYGNUM_HTTPD_SERVER_PORT</TT
>CYGNUM_HTTPD_SERVER_PORT</TT
></H2
></H2
><P
><P
>This option defines the TCP port that the server will listen on. It
>This option defines the TCP port that the server will listen on. It
defaults to the standard HTTP port number 80. It may be changed to a
defaults to the standard HTTP port number 80. It may be changed to a
different number if, for example, another HTTP server is using the
different number if, for example, another HTTP server is using the
main HTTP port.</P
main HTTP port.</P
></DIV
></DIV
><DIV
><DIV
CLASS="SECT2"
CLASS="SECT2"
><H2
><H2
CLASS="SECT2"
CLASS="SECT2"
><A
><A
NAME="AEN15267"><TT
NAME="AEN15267"><TT
CLASS="LITERAL"
CLASS="LITERAL"
>CYGDAT_HTTPD_SERVER_ID</TT
>CYGDAT_HTTPD_SERVER_ID</TT
></H2
></H2
><P
><P
>This is the string that is reported to the client in the
>This is the string that is reported to the client in the
&quot;Server:&quot; field of the HTTP header. </P
&quot;Server:&quot; field of the HTTP header. </P
></DIV
></DIV
><DIV
><DIV
CLASS="SECT2"
CLASS="SECT2"
><H2
><H2
CLASS="SECT2"
CLASS="SECT2"
><A
><A
NAME="AEN15271"><TT
NAME="AEN15271"><TT
CLASS="LITERAL"
CLASS="LITERAL"
>CYGNUM_HTTPD_THREAD_COUNT</TT
>CYGNUM_HTTPD_THREAD_COUNT</TT
></H2
></H2
><P
><P
>The HTTP server can be configured to use more than one thread to
>The HTTP server can be configured to use more than one thread to
service HTTP requests. If you expect to serve complex pages with many
service HTTP requests. If you expect to serve complex pages with many
images or other components that are fetched separately, or if any
images or other components that are fetched separately, or if any
pages may take a long time to send, then it may be useful to increase
pages may take a long time to send, then it may be useful to increase
the number of server threads. For most uses, however, the connection
the number of server threads. For most uses, however, the connection
queuing in the TCP/IP stack and the speed with which each page is
queuing in the TCP/IP stack and the speed with which each page is
generated, means that a single thread is usually adequate.</P
generated, means that a single thread is usually adequate.</P
></DIV
></DIV
><DIV
><DIV
CLASS="SECT2"
CLASS="SECT2"
><H2
><H2
CLASS="SECT2"
CLASS="SECT2"
><A
><A
NAME="AEN15275"><TT
NAME="AEN15275"><TT
CLASS="LITERAL"
CLASS="LITERAL"
>CYGNUM_HTTPD_THREAD_PRIORITY</TT
>CYGNUM_HTTPD_THREAD_PRIORITY</TT
></H2
></H2
><P
><P
>The HTTP server threads can be run at any priority. The exact priority
>The HTTP server threads can be run at any priority. The exact priority
depends on the importance of the server relative to the rest of the
depends on the importance of the server relative to the rest of the
system. The default is to put them in the middle of the priority range
system. The default is to put them in the middle of the priority range
to provide reasonable response without impacting genuine high priority
to provide reasonable response without impacting genuine high priority
threads.</P
threads.</P
></DIV
></DIV
><DIV
><DIV
CLASS="SECT2"
CLASS="SECT2"
><H2
><H2
CLASS="SECT2"
CLASS="SECT2"
><A
><A
NAME="AEN15279"><TT
NAME="AEN15279"><TT
CLASS="LITERAL"
CLASS="LITERAL"
>CYGNUM_HTTPD_THREAD_STACK_SIZE</TT
>CYGNUM_HTTPD_THREAD_STACK_SIZE</TT
></H2
></H2
><P
><P
>This is the amount of stack to be allocated for each of the HTTPD
>This is the amount of stack to be allocated for each of the HTTPD
threads. The actual stack size allocated will be this value plus the
threads. The actual stack size allocated will be this value plus the
values of <TT
values of <TT
CLASS="LITERAL"
CLASS="LITERAL"
>CYGNUM_HAL_STACK_SIZE_MINIMUM</TT
>CYGNUM_HAL_STACK_SIZE_MINIMUM</TT
> and
> and
<TT
<TT
CLASS="LITERAL"
CLASS="LITERAL"
>CYGNUM_HTTPD_SERVER_BUFFER_SIZE</TT
>CYGNUM_HTTPD_SERVER_BUFFER_SIZE</TT
>.</P
>.</P
></DIV
></DIV
><DIV
><DIV
CLASS="SECT2"
CLASS="SECT2"
><H2
><H2
CLASS="SECT2"
CLASS="SECT2"
><A
><A
NAME="AEN15285"><TT
NAME="AEN15285"><TT
CLASS="LITERAL"
CLASS="LITERAL"
>CYGNUM_HTTPD_SERVER_BUFFER_SIZE</TT
>CYGNUM_HTTPD_SERVER_BUFFER_SIZE</TT
></H2
></H2
><P
><P
>This defines the size of the buffer used to receive the first line of
>This defines the size of the buffer used to receive the first line of
each HTTP request. If you expect to use particularly long URLs or have
each HTTP request. If you expect to use particularly long URLs or have
very complex forms, this should be increased.</P
very complex forms, this should be increased.</P
></DIV
></DIV
><DIV
><DIV
CLASS="SECT2"
CLASS="SECT2"
><H2
><H2
CLASS="SECT2"
CLASS="SECT2"
><A
><A
NAME="AEN15289"><TT
NAME="AEN15289"><TT
CLASS="LITERAL"
CLASS="LITERAL"
>CYGNUM_HTTPD_SERVER_DELAY</TT
>CYGNUM_HTTPD_SERVER_DELAY</TT
></H2
></H2
><P
><P
>This defines the number of system clock ticks that the HTTP server
>This defines the number of system clock ticks that the HTTP server
will wait before initializing itself and spawning any extra server
will wait before initializing itself and spawning any extra server
threads. This is to give the application a chance to initialize
threads. This is to give the application a chance to initialize
properly without any interference from the HTTPD.</P
properly without any interference from the HTTPD.</P
></DIV
></DIV
></DIV
></DIV
><DIV
><DIV
CLASS="NAVFOOTER"
CLASS="NAVFOOTER"
><HR
><HR
ALIGN="LEFT"
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
SUMMARY="Footer navigation table"
WIDTH="100%"
WIDTH="100%"
BORDER="0"
BORDER="0"
CELLPADDING="0"
CELLPADDING="0"
CELLSPACING="0"
CELLSPACING="0"
><TR
><TR
><TD
><TD
WIDTH="33%"
WIDTH="33%"
ALIGN="left"
ALIGN="left"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="net-httpd-organization.html"
HREF="net-httpd-organization.html"
ACCESSKEY="P"
ACCESSKEY="P"
>Prev</A
>Prev</A
></TD
></TD
><TD
><TD
WIDTH="34%"
WIDTH="34%"
ALIGN="center"
ALIGN="center"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="ecos-ref.html"
HREF="ecos-ref.html"
ACCESSKEY="H"
ACCESSKEY="H"
>Home</A
>Home</A
></TD
></TD
><TD
><TD
WIDTH="33%"
WIDTH="33%"
ALIGN="right"
ALIGN="right"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="net-httpd-html.html"
HREF="net-httpd-html.html"
ACCESSKEY="N"
ACCESSKEY="N"
>Next</A
>Next</A
></TD
></TD
></TR
></TR
><TR
><TR
><TD
><TD
WIDTH="33%"
WIDTH="33%"
ALIGN="left"
ALIGN="left"
VALIGN="top"
VALIGN="top"
>Server Organization</TD
>Server Organization</TD
><TD
><TD
WIDTH="34%"
WIDTH="34%"
ALIGN="center"
ALIGN="center"
VALIGN="top"
VALIGN="top"
><A
><A
HREF="net-httpd-chapter.html"
HREF="net-httpd-chapter.html"
ACCESSKEY="U"
ACCESSKEY="U"
>Up</A
>Up</A
></TD
></TD
><TD
><TD
WIDTH="33%"
WIDTH="33%"
ALIGN="right"
ALIGN="right"
VALIGN="top"
VALIGN="top"
>Support Functions and Macros</TD
>Support Functions and Macros</TD
></TR
></TR
></TABLE
></TABLE
></DIV
></DIV
></BODY
></BODY
></HTML
></HTML
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.