我通过我的ASP .NET应用程序连接到MSSQL数据库,但有时我在打开连接时遇到此错误.
连接超时已过期.尝试使用登录前握手确认时超时时间已过.这可能是因为登录前握手失败或服务器无法及时响应.尝试连接到此服务器所花费的时间是 - [Pre-Login] initialization = 3; 握手= 14996;
暂时解决它我要重新启动IIS.我正在使用此代码段连接到MSSQL:
using (SqlConnection connection = new SqlConnection(connectionString))
{
connection.Open();
/* my commands here */
connection.Close();
connection.Dispose();
SqlConnection.ClearPool(connection);
}
Run Code Online (Sandbox Code Playgroud)
我在入站和出站规则中允许端口1433,但没有更改.当我按照那里的指示:
但没有改变.
我的 SMS 服务提供商要求我在通过 SMPP 连接到他时设置以下 TLV 参数:
如何在 Kannel 中配置相同的内容,因为这是我第一次使用这个 SMPP 客户端应用程序,我在 Kannel.conf 文件中设置了以下数据,但是当我推送/发送消息时,网关没有感觉到 TLV我已经设定。
group = smpp-tlv
name = PRICEPOINT
tag = 0x1400
type = integer
length = 4
smsc-id = SMSC01
group = smpp-tlv
name = PRODUCT
tag = 0x1401
type = integer
length = 4
smsc-id = SMSC01
group = smpp-tlv
name = PARTNERROLEID
tag = 0x1402
type = integer
length = 4
smsc-id = SMSC01
Run Code Online (Sandbox Code Playgroud)
但在实时 TCP 跟踪中,我没有找到它: