[Sstp-client-devel] sstpc Negotiation timeout
Brought to you by:
eivnaes
|
From: k. <63...@qq...> - 2012-03-02 08:10:05
|
I use sstpc to connect sstp server after When the sstp connection is successful 60 seconds, the connection is disconnected, the server "Negotiation timeout".
MS-SSTP is 3.2.2.1 Description:
1. When a New HTTPS Connection Received event is received, the server transitions to the Server_Connect_Request_Pending state where it waits to receive an acceptable Call Connect Request message. If this is received before the Negotiation timer expires, the server then sends a Call Connect Acknowledge message and transitions to the Server_Call_Connected_Pending state. If the request is not received before the Negotiation timer expires, the server transitions to the Call Failed state as shown in the server call establishment diagram in section 3.2.1.1.1.
2. After sending the Call Connect Acknowledge message, if the server does not receive a Call Connected message before the Negotiation timer expires then it MUST send a Call Abort message and start the process of bringing down (disconnecting) the connection. The server MAY implement different timer values for the Call Connected message and the Call Connect Request message.
This the timer SHOULD be set to 60 seconds.
-----------------------------------------
Whether it was because sstpc received the "Call Connect Acknowledge message" and "Call Connected message" did not respond to the server caused??
I try modify sstp_state_handle_ctrl function:
the switch (the type)
{
case SSTP_MSG_CONNECT_ACK:
sstp_state_connect_ack (state, type, buf);
sstp_state_accept (state);
break;
The call sstp_state_accept (state); to send the "Call Connected message" can be properly connected.
Is sstpc Bug or my configuration errors caused by it?
This is my configuration file:
remotename sstp-test
the linkname sstp-test
remotename sstp-test
the linkname sstp-test
ipparam sstp-test
pty "sstpc 192.168.2.9 - user txwwy - password 123456 - log-level 1 - log-stderr - ca-cert / etc / sstp-ca / ca.crt"
name txwwy
plugin sstp-pppd-plugin.so
sstp-sock / tmp / sstpc-uds-sock
usepeerdns
# The require-mppe
refuse-eap
noauth
debug
# Adopt defaults from the pptp-the linux package
the file / etc / ppp / options.pptp |