主要编辑:自从最初发现这个问题以来,我已将其削减到下面.我认为现在对这个问题的描述略微准确.因此,对OP的评论可能不完全相关.
编辑在rails/puma项目中发布的轻微修改版本:https://github.com/rails/rails/issues/21209,https://github.com/puma/puma/issues/758
编辑现在转载OS X和Rainbows
简介: 当使用Puma并运行长时间运行的连接时,我一直收到与跨越线程的ActiveRecord连接相关的错误.这表现在消息 message type 0x## arrived from server while idle 和锁定(崩溃)服务器中.
设置:
mysqld 5.6.25-0ubuntu0.15.04.1)2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]/ Rubiniusrbx-2.5.84.2.3,4.2.1)2.12.2,2.11)pg-0.18.2)/ mysql2请注意,并非所有上述版本的组合都已尝试过.首先列出的版本是我目前正在测试的版本.
rails new issue-testget 'events' => 'streaming#events'streaming_controller.rbpool: 2但看到不同的池大小)码:
class StreamingController < ApplicationController
include …Run Code Online (Sandbox Code Playgroud) ruby multithreading connection-pooling ruby-on-rails actioncontroller
if ([[UIDevice currentDevice] respondsToSelector:@selector(identifierForVendor)]) {
return [[[UIDevice currentDevice] identifierForVendor] UUIDString];
}
Run Code Online (Sandbox Code Playgroud)
这会改变吗?我原本想使用MAC地址,但显然7+不会返回它.我从我正在处理的开发应用程序中调用了这个,并读取它是使用bundle id计算的.
发布应用程序商店后,这将永远保持一致吗?