Skip to content

Commit 21a1de7

Browse files
author
Albert Adiyatullin
committed
Fixed bug when the return Close message is not sent.
- The Close method often follows the Read method returning the error 6066 "Closed by the peer". Checking of an input error within prevented it from sending Close frame in responce, thus making the peer crash with the error 66 "TCP connection closed". This fix lets the Close message even if the error 6066 is present. - Fixed TCP closure wiring in the example.
1 parent 40ee255 commit 21a1de7

6 files changed

Lines changed: 11 additions & 2 deletions

File tree

Close.vi

968 Bytes
Binary file not shown.
-24 Bytes
Binary file not shown.
-16 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[My Computer]
2-
My Computer = "192.168.175.33"
2+
My Computer = "172.22.11.1"
33

Examples/WebSockets Examples.lvlps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[ProjectWindow_Data]
2-
ProjectExplorer.ClassicPosition[String] = "768,-641,1594,-122"
2+
ProjectExplorer.ClassicPosition[String] = "94,145,920,664"
33

Examples/WebSockets Examples.lvproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@
22
<Project Type="Project" LVVersion="17008000">
33
<Property Name="NI.LV.All.SourceOnly" Type="Bool">false</Property>
44
<Property Name="NI.Project.Description" Type="Str">This project contains examples for using the WebSockets API provided by MediaMongrels Ltd</Property>
5+
<Property Name="SMProvider.SMVersion" Type="Int">201310</Property>
56
<Item Name="My Computer" Type="My Computer">
7+
<Property Name="IOScan.Faults" Type="Str"></Property>
8+
<Property Name="IOScan.NetVarPeriod" Type="UInt">100</Property>
9+
<Property Name="IOScan.NetWatchdogEnabled" Type="Bool">false</Property>
10+
<Property Name="IOScan.Period" Type="UInt">10000</Property>
11+
<Property Name="IOScan.PowerupMode" Type="UInt">0</Property>
12+
<Property Name="IOScan.Priority" Type="UInt">9</Property>
13+
<Property Name="IOScan.ReportModeConflict" Type="Bool">true</Property>
14+
<Property Name="IOScan.StartEngineOnDeploy" Type="Bool">false</Property>
615
<Property Name="server.app.propertiesEnabled" Type="Bool">true</Property>
716
<Property Name="server.control.propertiesEnabled" Type="Bool">true</Property>
817
<Property Name="server.tcp.enabled" Type="Bool">false</Property>

0 commit comments

Comments
 (0)