aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/lliosocket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llmessage/lliosocket.cpp')
-rw-r--r--linden/indra/llmessage/lliosocket.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/linden/indra/llmessage/lliosocket.cpp b/linden/indra/llmessage/lliosocket.cpp
index 628f884..af22180 100644
--- a/linden/indra/llmessage/lliosocket.cpp
+++ b/linden/indra/llmessage/lliosocket.cpp
@@ -6,6 +6,7 @@
6 * 6 *
7 * Copyright (c) 2005-2007, Linden Research, Inc. 7 * Copyright (c) 2005-2007, Linden Research, Inc.
8 * 8 *
9 * Second Life Viewer Source Code
9 * The source code in this file ("Source Code") is provided by Linden Lab 10 * The source code in this file ("Source Code") is provided by Linden Lab
10 * to you under the terms of the GNU General Public License, version 2.0 11 * to you under the terms of the GNU General Public License, version 2.0
11 * ("GPL"), unless you have obtained a separate licensing agreement 12 * ("GPL"), unless you have obtained a separate licensing agreement
@@ -538,9 +539,20 @@ LLIOPipe::EStatus LLIOServerSocket::process_impl(
538 if(llsocket) 539 if(llsocket)
539 { 540 {
540 PUMP_DEBUG; 541 PUMP_DEBUG;
542
543 apr_sockaddr_t* remote_addr;
544 apr_socket_addr_get(&remote_addr, APR_REMOTE, socket);
545
546 char* remote_host_string;
547 apr_sockaddr_ip_get(&remote_host_string, remote_addr);
548
549 LLSD context;
550 context["remote-host"] = remote_host_string;
551 context["remote-port"] = remote_addr->port;
552
541 LLPumpIO::chain_t chain; 553 LLPumpIO::chain_t chain;
542 chain.push_back(LLIOPipe::ptr_t(new LLIOSocketReader(llsocket))); 554 chain.push_back(LLIOPipe::ptr_t(new LLIOSocketReader(llsocket)));
543 if(mReactor->build(chain, LLSD())) 555 if(mReactor->build(chain, context))
544 { 556 {
545 chain.push_back(LLIOPipe::ptr_t(new LLIOSocketWriter(llsocket))); 557 chain.push_back(LLIOPipe::ptr_t(new LLIOSocketWriter(llsocket)));
546 pump->addChain(chain, mResponseTimeout); 558 pump->addChain(chain, mResponseTimeout);