Bug 1113194 - Windows clients do not report "cproc" information to the broker.
Summary: Windows clients do not report "cproc" information to the broker.
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-sdk
Version: 3.0
Hardware: Unspecified
OS: All
medium
medium
Target Milestone: 3.3
: ---
Assignee: messaging-bugs
QA Contact: Messaging QE
URL:
Whiteboard:
Depends On:
Blocks: 1113197
TreeView+ depends on / blocked
 
Reported: 2014-06-25 15:32 UTC by Irina Boverman
Modified: 2025-02-10 03:36 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1109873
: 1113197 (view as bug list)
Environment:
Last Closed: 2025-02-10 03:36:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Irina Boverman 2014-06-25 15:32:51 UTC
+++ This bug was initially created as a clone of Bug #1109873 +++

Description of problem:
"qpid-stat" tool with "-c" option does not show a name of connected client from Windows machine. 

Try to compare, please:
When the drain client is connected to the broker from a Linux machine, the name of the client is displayed correctly:

# qpid-stat -c
Connections
  connection                                 cproc      cpid   mech  auth       connected  idle  msgIn  msgOut
  ==============================================================================================================
  qpid.10.34.33.251:5672-10.34.33.199:57589  drain      3735         anonymous  2s         0s       0      0
  qpid.[::1]:5672-[::1]:60305                qpid-stat  11814        anonymous  0s         0s       1      0

-------------------------------------------------------------------------------

However if the drain client is connected from a Windows machine,the "cproc" column is empty:

# qpid-stat -c
Connections
  connection                                cproc      cpid   mech  auth       connected  idle  msgIn  msgOut
  =============================================================================================================
  qpid.10.34.33.251:5672-10.34.74.82:57245             1456                    1s         0s       0      0
  qpid.[::1]:5672-[::1]:60306               qpid-stat  11843        anonymous  0s         0s       1      0



Version-Release number of selected component (if applicable):
qpid-tools-0.22-13.el6.noarch

How reproducible:
100%

Steps to Reproduce:
1. Unpack and compile qpid-cpp-win packages
2. Start a broker
3. Connect "drain" client from the Windows machine to the broker with a large timeout:
   drain.exe --broker <hostname>:5672 --timeout 120 amq.topic
4. Run "qpid-stat -c" while the "drain" is connected

Actual results:
Connection opened by the drain client is displayed without a name of the process.

Expected results:
Connection opened by the drain client should be displayed with the name of the process.

--- Additional comment from Irina Boverman on 2014-06-25 10:51:24 EDT ---



--- Additional comment from Irina Boverman on 2014-06-25 11:21:13 EDT ---

How to test changes:

(1) Change broker config file to this:
auth=no

(2) Start broker on localhost
service qpidd start

(3) Use spout to send messages (RHEL):
spout -b localhost test0

(4) Use drain (Windows and RHEL):

(a) RHEL:
drain -b localhost --timeout 120 amq.topic

(b) Windows:
$ alias rdp='rdesktop  -u mrg -g 1024x800 mrg-win-1.ml3.eng.bos.redhat.com'
$ rdp

User mrg (usual team root password), and a screen geometry that works for you if 1600x1024 doesn't fit.

Open up a dos box command prompt. Drain is located at
D:\Users\mrg\winsdk\qpid-cpp-x86-VS2010-3.22.41.1\bin\Debug

Details (per Chuck's instructions):

C:\>
C:\>d:
D:\>cd Users\mrg\winsdk\qpid-cpp-x86-VS2010-3.22.41.1\bin\debug
D:\Users\mrg\winsdk\qpid-cpp-x86-VS2010-3.22.41.1\bin\Debug>drain -b <broker> --timeout 120 amq.topic

(5) 
# qpid-stat -c

Result after changes:

Connections
  connection                                  cproc      cpid   mech     auth       connected  idle   msgIn  msgOut
  ===================================================================================================================
  qpid.10.16.44.229:5672-10.19.176.108:60550  unknown    2320   unknown  unknown    1m 2s      1m 1s     0      0
  qpid.[::1]:5672-[::1]:37979                 drain      27240  unknown  anonymous  16s        13s       0      0
  qpid.[::1]:5672-[::1]:37981                 qpid-stat  27253  unknown  anonymous  0s         0s        1      0


There are also bugs in Windows client not passing "cproc" and "auth" fields to the broker, and in both Windows/Linux code not passing "mech" field to the broker.

Comment 4 Red Hat Bugzilla 2025-02-10 03:36:13 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.


Note You need to log in before you can comment on or make changes to this bug.