Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Set REMOTE_PORT environment variable #324

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.

This is the implementation for standard HTTP::Server::PSGI from Plack distribution.

Tatsuhiko Miyagawa miyagawa merged commit 6289e7e into from
Piotr Roszatycki dex4er deleted the branch
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/HTTP/Server/
1  lib/HTTP/Server/
@@ -112,6 +112,7 @@ sub accept_loop {
SERVER_NAME => $self->{host},
REMOTE_ADDR => $conn->peerhost,
+ REMOTE_PORT => $conn->peerport || 0,
'psgi.version' => [ 1, 1 ],
'psgi.errors' => *STDERR,
'psgi.url_scheme' => $self->{ssl} ? 'https' : 'http',
Something went wrong with that request. Please try again.