Skip to content

Commit

Permalink
fixup! nghttpx: More StringRef-fy
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuhiro-t committed Mar 24, 2016
1 parent a104d8a commit a9e365a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/shrpx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -94,29 +94,27 @@ namespace shrpx {

// Deprecated: Environment variables to tell new binary the listening
// socket's file descriptors. They are not close-on-exec.
constexpr StringRef ENV_LISTENER4_FD =
StringRef::from_lit("NGHTTPX_LISTENER4_FD");
constexpr StringRef ENV_LISTENER6_FD =
StringRef::from_lit("NGHTTPX_LISTENER6_FD");
constexpr auto ENV_LISTENER4_FD = StringRef::from_lit("NGHTTPX_LISTENER4_FD");
constexpr auto ENV_LISTENER6_FD = StringRef::from_lit("NGHTTPX_LISTENER6_FD");

// Deprecated: Environment variable to tell new binary the port number
// the current binary is listening to.
constexpr StringRef ENV_PORT = StringRef::from_lit("NGHTTPX_PORT");
constexpr auto ENV_PORT = StringRef::from_lit("NGHTTPX_PORT");

// Deprecated: Environment variable to tell new binary the listening
// socket's file descriptor if frontend listens UNIX domain socket.
constexpr StringRef ENV_UNIX_FD = StringRef::from_lit("NGHTTP2_UNIX_FD");
constexpr auto ENV_UNIX_FD = StringRef::from_lit("NGHTTP2_UNIX_FD");
// Deprecated: Environment variable to tell new binary the UNIX domain
// socket path.
constexpr StringRef ENV_UNIX_PATH = StringRef::from_lit("NGHTTP2_UNIX_PATH");
constexpr auto ENV_UNIX_PATH = StringRef::from_lit("NGHTTP2_UNIX_PATH");

// Prefix of environment variables to tell new binary the listening
// socket's file descriptor. They are not close-on-exec. For TCP
// socket, the value must be comma separated 2 parameters: tcp,<FD>.
// <FD> is file descriptor. For UNIX domain socket, the value must be
// comma separated 3 parameters: unix,<FD>,<PATH>. <FD> is file
// descriptor. <PATH> is a path to UNIX domain socket.
constexpr StringRef ENV_ACCEPT_PREFIX = StringRef::from_lit("NGHTTPX_ACCEPT_");
constexpr auto ENV_ACCEPT_PREFIX = StringRef::from_lit("NGHTTPX_ACCEPT_");

#ifndef _KERNEL_FASTOPEN
#define _KERNEL_FASTOPEN
Expand Down

0 comments on commit a9e365a

Please sign in to comment.