我在Meteor应用程序中使用node-amqp通过SSL连接到rabbitMQ服务器。这是我的连接字符串:
var rConn = AMQP.createConnection({ url: amqps://user:pass@host:pppp, vhost: '/virthost' });
但是,没有连接。以下是RabbitMQ错误日志:
=INFO REPORT==== 25-Jun-2013::17:41:30 ===
accepting AMQP connection <0.20247.0> (xxx.xxx.xxx.xxx:pppp -> xxx.xxx.xxx.xxx:pppp)
=ERROR REPORT==== 25-Jun-2013::17:41:30 ===
error on AMQP connection <0.20231.0>: {ssl_upgrade_error,"record overflow"} (unknown POSIX error)
=INFO REPORT==== 25-Jun-2013::18:11:35 ===
accepting AMQP connection <0.22556.0> (xxx.xxx.xxx.xxx:pppp -> xxx.xxx.xxx.xxx:pppp)
=ERROR REPORT==== 25-Jun-2013::18:11:40 ===
error on AMQP connection <0.22556.0>: {ssl_upgrade_error,timeout} (unknown POSIX error)
我在记录溢出错误上找到的就是检查正在运行的Erlang的版本。我尝试建立连接的框使用的是最新版本。我不确定运行RabbitMQ的盒子,但我会调查它。任何进一步的帮助将不胜感激。
答案 0 :(得分:0)
此时反应迟到了,我很害怕,但我遇到了类似的问题,结果发现我正在将明文输入RabbitMQ服务器套接字。服务器期待SSL协商,但我的客户端代码没有正确设置SSL套接字而是使用常规套接字,导致&#34;记录溢出&#34;就像这个一样 - 虽然我的STOMP已经结束了,看起来像这样:
cmake_minimum_required(VERSION 2.8)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
project(Gomoku)
set(SOURCE_FILES src/core/IntroState.cpp
src/core/GameEngine.cpp
src/core/Arbiter.cpp
src/tests/CoreFirstRuleTests.cpp)
find_package(Qt5Widgets REQUIRED)
include_directories(include/core
include/ai
include/graphic
include/tests
include)
set(HW_HEADER_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include)
include_directories(${HW_HEADER_DIR})
qt5_wrap_cpp(Gomoku_SRC ${HW_HEADER_DIR}/core/GameEngine.h
${HW_HEADER_DIR}/core/IntroState.h)
qt5_wrap_ui(Gomoku_UI
${HW_HEADER_DIR}/ui/dialog.ui)
add_executable(Gomoku ${SOURCE_FILES} ${Gomoku_SRC} ${Gomoku_UI})
qt5_use_modules(Gomoku Widgets)
http://erlang.org/pipermail/erlang-questions/2012-December/071099.html是赠品。
所以,我提供了这个答案,希望下一个查看这个问题的人检查他们的客户在插座中喷出的东西。