Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > pl.comp.programming > #30799

Re: Wieloużytkownikowy serwer udp?

From Piotr Chamera <piotr_chamera@poczta.onet.pl>
Newsgroups pl.comp.programming
Subject Re: Wieloużytkownikowy serwer udp?
Date 2017-10-12 20:06 +0200
Organization A noiseless patient Spider
Message-ID <oroava$f3m$1@dont-email.me> (permalink)
References (7 earlier) <fdb36e03-3e9b-4c0e-805b-438d936c6c73@googlegroups.com> <19dej8rsqxnx2.dlg@tyczka.com> <3f578e67-437b-4889-bb33-7e810822e60a@googlegroups.com> <76f70072-30e6-44d7-b29b-27282800c5f4@googlegroups.com> <1emxea02mgycu.dlg@tyczka.com>

Show all headers | View raw


W dniu 2017-10-12 o 19:04, Roman Tyczka pisze:
> On Thu, 12 Oct 2017 09:50:21 -0700 (PDT), M.M. wrote:
> 
>>>> Istnieje co prawda coś takiego jak websockets, ale to zupełnie 
>>>> inna bajka.
>>>> 
>>> Jest w sieci wiele przykładów serwerów i klientów http. Jeśli Ci 
>>> zależy, możesz któryś poznać. Wpisz w google np. taką frazę "qt 
>>> http server"
>> 
>> Może tam Cię coś zainteresuje: 
>> http://doc.qt.io/qt-5/qtwebsockets-echoserver-example.html
>> 
>> Pozdrawiam
> 
> Ale przecież napisałem, że nie chodzi o websockety bo to inna bajka, 
> osobna (nowa) technologia i do czego innego służąca. A jeśli chodzi
> o źródła serwerów... jedynie serwery pokroju Apache czy IIS są tu 
> istotne, bo to one trzymają na swoich plecach internet, a żeby zbadać
> źródła takiego Apache to ...jestem za chudy w uszach. Stąd dopytuję,
> może ktoś w tym siedzi zawodowo i po prostu wie.

Z ciekawości zerknąłem do Wikipedii
(https://en.wikipedia.org/wiki/HTTP_persistent_connection), piszą, że
dla HTTP 1.1 jest to (keepalive) zachowanie domyślne. Apache ma
domyślnie ustawiony dość krótki czas utrzymywania połączenia (15 i 5
sekund w zal. od wersji).

„HTTP 1.1
In HTTP 1.1, all connections are considered persistent unless declared
otherwise.[1] The HTTP persistent connections do not use separate
keepalive messages, they just allow multiple requests to use a single
connection. However, the default connection timeout of Apache httpd 1.3
and 2.0 is as little as 15 seconds[2][3] and just 5 seconds for Apache
httpd 2.2 and above.[4][5] The advantage of a short timeout is the
ability to deliver multiple components of a web page quickly while not
consuming resources to run multiple server processes or threads for too
long.[6]”

Bardzo popularny Nginx (popularniejszy na mocno obciążonych witrynach od
Apache, https://w3techs.com/technologies/cross/web_server/ranking) ma
ten czas domyślnie ustawiony na 75 sekund, czyli już dość długo). Można
to ustawić w konfiguracji w zależności od potrzeb za pomocą dwu opcji:

Syntax:	keepalive_requests number;
Default: keepalive_requests 100;
Context: http, server, location
This directive appeared in version 0.8.0.
Sets the maximum number of requests that can be served through one
keep-alive connection. After the maximum number of requests are made,
the connection is closed.

Syntax:	keepalive_timeout timeout [header_timeout];
Default: keepalive_timeout 75s;
Context: http, server, location
The first parameter sets a timeout during which a keep-alive client
connection will stay open on the server side. The zero value disables
keep-alive client connections. The optional second parameter sets a
value in the “Keep-Alive: timeout=time” response header field. Two
parameters may differ.

The “Keep-Alive: timeout=time” header field is recognized by Mozilla and
Konqueror. MSIE closes keep-alive connections by itself in about 60 seconds.


Dokumentacja i źródła tego serwera są dostępne na http://nginx.org/

Back to pl.comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Wieloużytkownikowy serwer udp? Borneq <borneq@antyspam.hidden.pl> - 2017-09-06 23:31 +0200
  Re: Wieloużytkownikowy serwer udp? Szyk Cech <szyk100@o2.pl> - 2017-09-07 01:14 +0200
  Re: Wieloużytkownikowy serwer udp? gof@somewhere.invalid (Adam Wysocki) - 2017-09-08 13:00 +0000
    Re: Wieloużytkownikowy serwer udp? gof@somewhere.invalid (Adam Wysocki) - 2017-09-08 13:01 +0000
    Re: Wieloużytkownikowy serwer udp? Roman Tyczka <noemail@because.no> - 2017-09-08 15:29 +0200
      Re: Wieloużytkownikowy serwer udp? Borneq <borneq@antyspam.hidden.pl> - 2017-09-08 18:44 +0200
      Re: Wieloużytkownikowy serwer udp? gof@somewhere.invalid (Adam Wysocki) - 2017-10-04 13:39 +0000
        Re: Wieloużytkownikowy serwer udp? Roman Tyczka <noemail@because.no> - 2017-10-04 19:56 +0200
          Re: Wieloużytkownikowy serwer udp? "PawelS cbrbob(at)wbcd(dot)pl" <fake@email.org> - 2017-10-06 19:05 +0200
          Re: Wieloużytkownikowy serwer udp? gof@somewhere.invalid (Adam Wysocki) - 2017-10-12 12:40 +0000
            Re: Wieloużytkownikowy serwer udp? Roman Tyczka <noemail@because.no> - 2017-10-12 15:58 +0200
              Re: Wieloużytkownikowy serwer udp? "M.M." <mmarszik@gmail.com> - 2017-10-12 08:05 -0700
                Re: Wieloużytkownikowy serwer udp? Roman Tyczka <noemail@because.no> - 2017-10-12 18:40 +0200
                Re: Wieloużytkownikowy serwer udp? "M.M." <mmarszik@gmail.com> - 2017-10-12 09:49 -0700
                Re: Wieloużytkownikowy serwer udp? "M.M." <mmarszik@gmail.com> - 2017-10-12 09:50 -0700
                Re: Wieloużytkownikowy serwer udp? Roman Tyczka <noemail@because.no> - 2017-10-12 19:04 +0200
                Re: Wieloużytkownikowy serwer udp? Piotr Chamera <piotr_chamera@poczta.onet.pl> - 2017-10-12 20:06 +0200
                Re: Wieloużytkownikowy serwer udp? "M.M." <mmarszik@gmail.com> - 2017-10-12 14:09 -0700
                Re: Wieloużytkownikowy serwer udp? "AK" <nobody@nowhere.net> - 2017-10-14 10:02 +0200
              Re: Wieloużytkownikowy serwer udp? michal@kleczek.org - 2017-10-17 06:46 -0700

csiph-web