[rabbitmq-discuss] Debugging of Connection.class
    Pete Kay 
    petedao at gmail.com
       
    Tue Sep  2 01:31:16 BST 2008
    
    
  
Hi Ben,
The correct bytes were written to the delegate.writeByptes().
Using ngrep, I see that the Flex client sends much less data to the server
than the Java Client:
===========================Flex Client ===============================
debian:/home/anne# ngrep  port 5672
interface: eth0 (192.168.1.0/255.255.255.0)
filter: (ip or ip6) and ( port 5672 )
########
T 192.168.1.100:58513 -> 192.168.1.104:5672 [AP]
  AMQP....
##
T 192.168.1.104:5672 -> 192.168.1.100:58513 [AP]
  ......
...........productS....RabbitMQ.versionS....1.4.0.platformS....Erlan
  g/OTP.copyrightS...gCopyright (C) 2007-2008 LShift Ltd., Cohesive
Financial
   Technologies LLC., and Rabbit Technologies Ltd..informationS...5Licensed
u
  nder the MPL.  See http://www.rabbitmq.com/....PLAIN AMQPLAIN....en_US.
#####
====================Java Client =============================
####
T 192.168.1.100:58520 -> 192.168.1.104:5672 [AP]
  AMQP....
##
T 192.168.1.104:5672 -> 192.168.1.100:58520 [AP]
  ......
...........productS....RabbitMQ.versionS....1.4.0.platformS....Erlan
  g/OTP.copyrightS...gCopyright (C) 2007-2008 LShift Ltd., Cohesive
Financial
   Technologies LLC., and Rabbit Technologies Ltd..informationS...5Licensed
u
  nder the MPL.  See http://www.rabbitmq.com/....PLAIN AMQPLAIN....en_US.
#
T 192.168.1.100:58520 -> 192.168.1.104:5672 [AP]
  ................productS....RabbitMQ.informationS...5Licensed under the
MPL
  .  See http://www.rabbitmq.com/.platformS....Java.copyrightS...gCopyright(
  C) 2007-2008 LShift Ltd., Cohesive Financial Technologies LLC., and Rabbit
  Technologies Ltd..versionS....1.4.0.PLAIN.....guest.guest.en_US.
#
T 192.168.1.104:5672 -> 192.168.1.100:58520 [AP]
  ....................
#
T 192.168.1.100:58520 -> 192.168.1.104:5672 [AP]
  ....................
##
T 192.168.1.100:58520 -> 192.168.1.104:5672 [AP]
  ..........(./...
##
T 192.168.1.104:5672 -> 192.168.1.100:58520 [AP]
  ..........).debian.sz.cn:5672.
#
T 192.168.1.100:58520 -> 192.168.1.104:5672 [AP]
  .............
#
T 192.168.1.104:5672 -> 192.168.1.100:58520 [AP]
  ............
#
T 192.168.1.100:58520 -> 192.168.1.104:5672 [AP]
  ............/data..
#
T 192.168.1.104:5672 -> 192.168.1.100:58520 [AP]
  ............e.
#
T 192.168.1.100:58520 -> 192.168.1.104:5672 [AP]
  ........2...e.SimpleQueue......
#
T 192.168.1.104:5672 -> 192.168.1.100:58520 [AP]
  ........2...SimpleQueue.........
#
T 192.168.1.100:58520 -> 192.168.1.104:5672 [AP]
  ........<...e.SimpleQueue...
#
T 192.168.1.104:5672 -> 192.168.1.100:58520 [AP]
  ......&.<..!amq.ctag-9jB3KisBEZQSrUunOq7L4w==.
##
T 192.168.1.104:5672 -> 192.168.1.100:58520 [AP]
  ........
##
T 192.168.1.100:58520 -> 192.168.1.104:5672 [AP]
  ........
It looks like when using the Java client, some data is missing or is not
being sent.  When I traced the Connection.class, I am pretty sure the
onSocketConnect() is called and the bytes are written to delegate.
Do you have any idea why this may be happening?
Thanks alot for all your help.
Best Regards,
Anne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20080902/4de105fe/attachment.htm 
    
    
More information about the rabbitmq-discuss
mailing list