Skip to content

Commit 54d24a4

Browse files
committed
0.9.18
1 parent eefb6db commit 54d24a4

File tree

6 files changed

+41
-13
lines changed

6 files changed

+41
-13
lines changed

Src/EngineIoClientDotNet.mono/Client/Socket.cs

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,13 +400,25 @@ internal void OnDrain()
400400
}
401401
catch (ArgumentOutOfRangeException)
402402
{
403-
//ignore
403+
WriteBuffer = WriteBuffer.Clear();
404+
CallbackBuffer = CallbackBuffer.Clear();
405+
PrevBufferLen = 0;
404406
}
405407
}
406408
//log.Info(string.Format("OnDrain2 PrevBufferLen={0} WriteBuffer.Count={1}", PrevBufferLen, WriteBuffer.Count));
407409

408-
WriteBuffer = WriteBuffer.RemoveRange(0, PrevBufferLen);
409-
CallbackBuffer = CallbackBuffer.RemoveRange(0, PrevBufferLen);
410+
411+
try
412+
{
413+
WriteBuffer = WriteBuffer.RemoveRange(0, PrevBufferLen);
414+
CallbackBuffer = CallbackBuffer.RemoveRange(0, PrevBufferLen);
415+
}
416+
catch (Exception)
417+
{
418+
WriteBuffer = WriteBuffer.Clear();
419+
CallbackBuffer = CallbackBuffer.Clear();
420+
}
421+
410422

411423
this.PrevBufferLen = 0;
412424
//log.Info(string.Format("OnDrain3 PrevBufferLen={0} WriteBuffer.Count={1}", PrevBufferLen, WriteBuffer.Count));
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="xunit.runner.console" version="2.0.0" />
4+
</packages>

Src/EngineIoClientDotNet.net45/EngineIoClientDotNet.net45.sln

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 2012
3+
# Visual Studio 2013
4+
VisualStudioVersion = 12.0.31101.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
46
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EngineIoClientDotNet.net45", "EngineIoClientDotNet.net45.csproj", "{842D8B13-DAF3-4919-80A0-03EFA3C17178}"
57
EndProject
6-
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "grunt", "..\..\grunt\", "{7F5CBDD0-5537-4B8B-AD7E-9F7E88600084}"
8+
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "grunt(1)", "..\..\grunt\", "{7F5CBDD0-5537-4B8B-AD7E-9F7E88600084}"
79
ProjectSection(WebsiteProperties) = preProject
8-
Frontpage = "false"
910
TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0"
1011
Debug.AspNetCompiler.VirtualPath = "/grunt"
1112
Debug.AspNetCompiler.PhysicalPath = "..\..\grunt\"
@@ -22,9 +23,10 @@ Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "grunt", "..\..\grunt\", "{7
2223
Release.AspNetCompiler.FixedNames = "false"
2324
Release.AspNetCompiler.Debug = "False"
2425
VWDPort = "8678"
26+
SlnRelativePath = "..\..\grunt\"
2527
EndProjectSection
2628
EndProject
27-
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "TestServer", "..\..\TestServer\", "{7E50397C-1221-49A9-A5F1-8254AC4BFBA4}"
29+
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "TestServer(1)", "..\..\TestServer\", "{7E50397C-1221-49A9-A5F1-8254AC4BFBA4}"
2830
ProjectSection(WebsiteProperties) = preProject
2931
TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0"
3032
Debug.AspNetCompiler.VirtualPath = "/TestServer"
@@ -42,10 +44,16 @@ Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "TestServer", "..\..\TestSer
4244
Release.AspNetCompiler.FixedNames = "false"
4345
Release.AspNetCompiler.Debug = "False"
4446
VWDPort = "8671"
47+
SlnRelativePath = "..\..\TestServer\"
4548
EndProjectSection
4649
EndProject
4750
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EngineIoClientDotNet.Tests.net45", "..\EngineIoClientDotNet.Tests.net45\EngineIoClientDotNet.Tests.net45.csproj", "{BEFF0675-8A73-4012-9651-C253E06E0F87}"
4851
EndProject
52+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{238B4362-A8D9-40BC-863F-236FFD88643D}"
53+
ProjectSection(SolutionItems) = preProject
54+
.nuget\packages.config = .nuget\packages.config
55+
EndProjectSection
56+
EndProject
4957
Global
5058
GlobalSection(SolutionConfigurationPlatforms) = preSolution
5159
Debug|Any CPU = Debug|Any CPU

grunt/Gruntfile.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
module.exports = function (grunt) {
33
var
44
node_os = require('os'),
5-
config = require('./config.json'),
5+
fs = require('fs'),
6+
strip_json = require('strip-json-comments'),
7+
config = JSON.parse(strip_json(String(fs.readFileSync('./config.json')))),
68
util = require('util'),
79
os = node_os.platform() === 'win32' ? 'win' : 'linux',
810
nuget_builds = [

grunt/config.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{
1+
{
22
"version":"0.9.18",
33
"server":{
44
"port":80,
@@ -7,12 +7,13 @@
77
},
88
"win":{
99
"powershell":"C:/WINDOWS/System32/WindowsPowerShell/v1.0/powershell.exe",
10-
"msbuild":"C:/Windows/Microsoft.NET/Framework/v4.0.30319/msbuild.exe",
11-
"xunit_path":"C:/ProgramData/chocolatey/bin",
10+
"msbuild": "C:/Windows/Microsoft.NET/Framework/v4.0.30319/msbuild.exe",
11+
// "xunit_path":"C:/ProgramData/chocolatey/bin",
12+
"xunit_path":"C:/Development/quobject.visualstudio.com/EngineIoClientDotNet/Src/EngineIoClientDotNet.net45/packages/xunit.runner.console.2.0.0/tools/",
1213
"nuget":"C:/ProgramData/chocolatey/bin/NuGet.exe"
1314
},
1415
"linux":{
1516
"msbuild":"xbuild",
1617
"xunit_path":"/home/apollo/vendors/xunit"
1718
}
18-
}
19+
}

grunt/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"string-formatter": "^0.2.0",
1919
"grunt-contrib-clean": "^0.6.0",
2020
"grunt-contrib-copy": "^0.5.0",
21-
"rimraf": "^2.2.8"
21+
"rimraf": "^2.2.8",
22+
"strip-json-comments": "^0.1.1"
2223
}
2324
}

0 commit comments

Comments
 (0)