This is an automated email from the ASF dual-hosted git repository.
ianmcook pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-experiments.git
The following commit(s) were added to refs/heads/main by this push:
new c086c15 Minor changes to simple C# examples (#26)
c086c15 is described below
commit c086c154453761b8acfbe6b4199449754f99889c
Author: Ian Cook <[email protected]>
AuthorDate: Mon Mar 18 11:15:02 2024 -0400
Minor changes to simple C# examples (#26)
* Workaround for https://github.com/apache/arrow/issues/40634
* Change server URI for compatibility with other examples
---
http/get_simple/csharp/client/ArrowHttpClient.cs | 4 ++--
http/get_simple/csharp/server/ArrowHttpServer.cs | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/http/get_simple/csharp/client/ArrowHttpClient.cs
b/http/get_simple/csharp/client/ArrowHttpClient.cs
index d23327b..32229f1 100644
--- a/http/get_simple/csharp/client/ArrowHttpClient.cs
+++ b/http/get_simple/csharp/client/ArrowHttpClient.cs
@@ -28,7 +28,7 @@ namespace ArrowHttpClient
{
public static async Task Main(string[] args)
{
- string serverUri = "http://127.0.0.1:8008/";
+ string serverUri = "http://localhost:8008/";
DateTime startTime = DateTime.UtcNow;
@@ -42,7 +42,6 @@ namespace ArrowHttpClient
{
Console.WriteLine("Connected");
- Schema schema = reader.Schema;
List<RecordBatch> batches = new List<RecordBatch>();
int numRows = 0;
@@ -52,6 +51,7 @@ namespace ArrowHttpClient
numRows += batch.Length;
batches.Add(batch);
}
+ Schema schema = reader.Schema;
DateTime endTime = DateTime.UtcNow;
diff --git a/http/get_simple/csharp/server/ArrowHttpServer.cs
b/http/get_simple/csharp/server/ArrowHttpServer.cs
index 7273947..13c90d8 100644
--- a/http/get_simple/csharp/server/ArrowHttpServer.cs
+++ b/http/get_simple/csharp/server/ArrowHttpServer.cs
@@ -76,7 +76,7 @@ namespace ArrowHttpServer
public static async Task Main(string[] args)
{
- string serverUri = "http://127.0.0.1:8008/";
+ string serverUri = "http://*:8008/";
HttpListener listener = new HttpListener();
listener.Prefixes.Add(serverUri);