Skip to content

Commit 0bd6f9f

Browse files
committed
9.0.2
1 parent 4dc53c4 commit 0bd6f9f

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

Unhinged/Engine/UnhingedEngine.Worker.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ private static void WorkerLoop(Worker W)
129129
long got;
130130
//fixed (byte* p = &c.Buf[c.Tail])
131131
// got = recv(fd, (IntPtr)p, (ulong)avail, 0);
132-
got = recv(fd, c.ReceiveBuffer, (ulong)avail, 0);
132+
got = recv(fd, c.ReceiveBuffer + c.Tail, (ulong)avail, 0);
133133

134134
if (got > 0)
135135
{
@@ -240,6 +240,9 @@ private static bool TryParseRequests(Connection connection)
240240

241241
// Mark that there is data to flush (a request was fully processed)
242242
hasDataToFlush = true;
243+
244+
if (connection.Head == connection.Tail) // No more data to read
245+
break;
243246
}
244247

245248
// If there is unprocessed data in the receiving buffer (incomplete request) which is not at buffer start

Unhinged/Unhinged.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
<Authors>Diogo Martins</Authors>
1111
<RepositoryUrl>https://github.com/MDA2AV/Unhinged</RepositoryUrl>
1212
<RepositoryType>git</RepositoryType>
13-
<AssemblyVersion>9.0.1</AssemblyVersion>
14-
<FileVersion>9.0.1</FileVersion>
15-
<Version>9.0.1</Version>
13+
<AssemblyVersion>9.0.2</AssemblyVersion>
14+
<FileVersion>9.0.2</FileVersion>
15+
<Version>9.0.2</Version>
1616
<PackageReadmeFile>README.md</PackageReadmeFile>
1717
<PackageTags>Unhinged</PackageTags>
1818
<PackageLicenseFile>LICENSE</PackageLicenseFile>

0 commit comments

Comments
 (0)