Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Set REMOTE_PORT environment variable #50

Merged
merged 1 commit into from

2 participants

Piotr Roszatycki Tatsuhiko Miyagawa
Piotr Roszatycki

REMOTE_PORT is a useful environment variable which can help ie. to track requests from the same user's session. It is not defined in RFC3875 but is commonly adapted by webservers.

Tatsuhiko Miyagawa miyagawa merged commit 8d6efd2 into from
Tatsuhiko Miyagawa miyagawa referenced this pull request from a commit
Tatsuhiko Miyagawa Checking in changes prior to tagging of version 0.3002.
Changelog diff is:

diff --git a/Changes b/Changes
index 09c5eb9..ddd8029 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,10 @@
 Revision history for Perl extension Starman

+0.3002  Tue Sep 25 15:26:43 JST 2012
+        - Added a documentation for --signal-on-term for Server::Starter 0.12 (kazuho, ether)
+        - Set REMOTE_PORT PSGI environment variable #50 (dex4er)
+        - Fix a test failure with a directory containing whitespace (clkao)
+
 0.3001  Mon Jun 25 10:57:20 PDT 2012
         - Fix SERVER_NAME and SERVER_PORT not exist on UNIX socket mode #24
         - Improved documentation
434e23f
Tatsuhiko Miyagawa miyagawa referenced this pull request from a commit
Tatsuhiko Miyagawa Checking in changes prior to tagging of version 0.3003.
Changelog diff is:

diff --git a/Changes b/Changes
index ddd8029..50f437b 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,8 @@
 Revision history for Perl extension Starman

+0.3003  Thu Sep 27 09:39:56 JST 2012
+        - Fixed the test hang in some environments, introduced in 0.3002 [RT:79865]
+
 0.3002  Tue Sep 25 15:26:43 JST 2012
         - Added a documentation for --signal-on-term for Server::Starter 0.12 (kazuho, ether)
         - Set REMOTE_PORT PSGI environment variable #50 (dex4er)
8b06c45
Masahiro Nagano kazeburo referenced this pull request in kazuho/Starlet
Merged

Set REMOTE_PORT environment variable #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 4, 2012
  1. Piotr Roszatycki
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/Starman/Server.pm
1  lib/Starman/Server.pm
View
@@ -176,6 +176,7 @@ sub process_request {
my $env = {
REMOTE_ADDR => $self->{server}->{peeraddr},
REMOTE_HOST => $self->{server}->{peerhost} || $self->{server}->{peeraddr},
+ REMOTE_PORT => $self->{server}->{peerport} || 0,
SERVER_NAME => $self->{server}->{sockaddr} || 0, # XXX: needs to be resolved?
SERVER_PORT => $self->{server}->{sockport} || 0,
SCRIPT_NAME => '',
Something went wrong with that request. Please try again.