Skip to content

Commit 2b3f1fc

Browse files
committed
HTTP-Daemon-6.08-TRIAL
- In t/chunked.t, leave choosing IP address family to IO::Socket::IP (GH#42) (Shoichi Kaji) - Add "IPv6 SUPPORT" section to pod (GH#43) (Shoichi Kaji) - Use HTTP::Tiny 0.042+ for IPv6 support (GH#41) (Shoichi Kaji)
1 parent b112357 commit 2b3f1fc

2 files changed

Lines changed: 23 additions & 6 deletions

File tree

Changes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Revision history for HTTP-Daemon
22

3-
{{$NEXT}}
3+
6.08 2020-05-22 15:26:00Z (TRIAL RELEASE)
44
- In t/chunked.t, leave choosing IP address family to IO::Socket::IP (GH#42) (Shoichi Kaji)
55
- Add "IPv6 SUPPORT" section to pod (GH#43) (Shoichi Kaji)
66
- Use HTTP::Tiny 0.042+ for IPv6 support (GH#41) (Shoichi Kaji)

README.pod

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ HTTP::Daemon - A simple http server class
88

99
=head1 VERSION
1010

11-
version 6.07
11+
version 6.08
1212

1313
=head1 SYNOPSIS
1414

@@ -38,6 +38,10 @@ listen on a socket for incoming requests. The C<HTTP::Daemon> is a
3838
subclass of C<IO::Socket::IP>, so you can perform socket operations
3939
directly on it too.
4040

41+
Please note that C<HTTP::Daemon> used to be a subclass of C<IO::Socket::INET>.
42+
To support IPv6, it switched the parent class to C<IO::Socket::IP> at version 6.05.
43+
See L</IPv6 SUPPORT> for details.
44+
4145
The accept() method will return when a connection from a client is
4246
available. The returned value will be an C<HTTP::Daemon::ClientConn>
4347
object which is another C<IO::Socket::IP> subclass. Calling the
@@ -281,6 +285,19 @@ Return a reference to the corresponding C<HTTP::Daemon> object.
281285

282286
=back
283287

288+
=head1 IPv6 SUPPORT
289+
290+
Since version 6.05, C<HTTP::Daemon> is a subclass of C<IO::Socket::IP>
291+
rather than C<IO::Socket::INET>, so that it supports IPv6.
292+
293+
For some reasons, you may want to force C<HTTP::Daemon> to listen on IPv4 addresses only.
294+
Then pass C<Family> argument to C<< HTTP::Daemon->new >>:
295+
296+
use HTTP::Daemon;
297+
use Socket 'AF_INET';
298+
299+
my $d = HTTP::Daemon->new(Family => AF_INET);
300+
284301
=head1 SEE ALSO
285302

286303
RFC 2616
@@ -303,7 +320,7 @@ Gisle Aas <gisle@activestate.com>
303320

304321
=head1 CONTRIBUTORS
305322

306-
=for stopwords Ville Skyttä Olaf Alders Mark Stosberg Karen Etheridge Chase Whitener Slaven Rezic Shoichi Kaji Zefram Bron Gondwana Petr Písař Tom Hukins Mike Schilli Alexey Tourbin Ian Kilgore Jacob J Ondrej Hanak Perlover Peter Rabbitson Robert Stone Rolf Grossmann Sean M. Burke Spiros Denaxas Steve Hay Todd Lipcon Tony Finch Toru Yamaguchi Yuri Karaban amire80 jefflee john9art murphy phrstbrn ruff Adam Kennedy sasao Sjogren Alex Kapranoff Andreas J. Koenig Bill Mann DAVIDRW Daniel Hedlund David E. Wheeler FWILES Father Chrysostomos Ferenc Erki Gavin Peters Graeme Thompson Hans-H. Froehlich
323+
=for stopwords Ville Skyttä Olaf Alders Mark Stosberg Karen Etheridge Shoichi Kaji Chase Whitener Slaven Rezic Zefram Bron Gondwana Petr Písař Tom Hukins Mike Schilli Alexey Tourbin Ian Kilgore Jacob J Ondrej Hanak Perlover Peter Rabbitson Robert Stone Rolf Grossmann Sean M. Burke Spiros Denaxas Steve Hay Todd Lipcon Tony Finch Toru Yamaguchi Yuri Karaban amire80 jefflee john9art murphy phrstbrn ruff Adam Kennedy sasao Sjogren Alex Kapranoff Andreas J. Koenig Bill Mann DAVIDRW Daniel Hedlund David E. Wheeler FWILES Father Chrysostomos Ferenc Erki Gavin Peters Graeme Thompson Hans-H. Froehlich
307324

308325
=over 4
309326

@@ -325,15 +342,15 @@ Karen Etheridge <ether@cpan.org>
325342

326343
=item *
327344

328-
Chase Whitener <capoeirab@cpan.org>
345+
Shoichi Kaji <skaji@cpan.org>
329346

330347
=item *
331348

332-
Slaven Rezic <slaven@rezic.de>
349+
Chase Whitener <capoeirab@cpan.org>
333350

334351
=item *
335352

336-
Shoichi Kaji <skaji@cpan.org>
353+
Slaven Rezic <slaven@rezic.de>
337354

338355
=item *
339356

0 commit comments

Comments
 (0)