Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 59831 invoked from network); 5 Aug 2008 04:06:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Aug 2008 04:06:16 -0000 Received: (qmail 65396 invoked by uid 500); 5 Aug 2008 04:06:12 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 65385 invoked by uid 500); 5 Aug 2008 04:06:12 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 65374 invoked by uid 99); 5 Aug 2008 04:06:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Aug 2008 21:06:12 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Aug 2008 04:05:25 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9A0E9234C189 for ; Mon, 4 Aug 2008 21:05:52 -0700 (PDT) Message-ID: <575693357.1217909152629.JavaMail.jira@brutus> Date: Mon, 4 Aug 2008 21:05:52 -0700 (PDT) From: "Filip Hanik (JIRA)" To: dev@activemq.apache.org Subject: [jira] Updated: (AMQ-1860) soTimeout transport property- Incorrect documentation (or code, you pick) In-Reply-To: <1951025542.1216405620325.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-1860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Filip Hanik updated AMQ-1860: ----------------------------- Attachment: (was: transport-options.patch) > soTimeout transport property- Incorrect documentation (or code, you pick) > ------------------------------------------------------------------------- > > Key: AMQ-1860 > URL: https://issues.apache.org/activemq/browse/AMQ-1860 > Project: ActiveMQ > Issue Type: Bug > Components: Broker, Documentation > Affects Versions: 5.0.0, 5.1.0 > Environment: All > Reporter: Filip Hanik > Assignee: Rob Davies > > The documentation for TCP transport, shows soTimeout, connectionTimeout and socketBufferSize as properties without a prefix. > The code in TcpTransportServer.java doesn't have the support for these properties. > hence setting a URL to tcp://192.168.3.3:61616?soTimeout=180000 does nothing, and defaults to soTimeout=0 (which is a bad value due to how sockets get closed, and can cause the system to hang on a socketWrite call, causing the rest of the server to hang, but I can explain that on the dev lists for those interested) > Bug description: Transport properties are incorrectly document or implemented > There are two solutions to this bug: > 1. The preferred, would be to fix the documentation > http://activemq.apache.org/tcp-transport-reference.html > the mentioned options will work if they are prefixed with "transport." > so the URL would be > tcp://192.168.3.3:61616?transport.soTimeout=180000 > 2. Add the properties with their getters/setters into TcpTransportServer.java and then during the handleSocket method add them to the options map > Please note, this bug refers to the soTimeout setting on the socket that gets created on the server when a producer/consumer connects in using TCP > best > Filip -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.