ianmcook commented on PR #29:
URL: https://github.com/apache/arrow-experiments/pull/29#issuecomment-2087559070
@simsurace I'm not able to get the server example working on macOS. It
starts successfully, but when a client connects to it (any client), it throws
an error:
```console
% julia --project=.. server.jl
Serving on localhost:8008...
[ Info: Listening on: 127.0.0.1:8008, thread id: 1
┌ Error: handle_connection handler error.
│
│ ===========================
│ HTTP Error message:
│
│ ERROR: IOError: write: invalid argument (EINVAL)
│ Stacktrace:
│ [1] uv_write(s::Sockets.TCPSocket, p::Ptr{UInt8}, n::UInt64)
│ @ Base ./stream.jl:1066
│ [2] unsafe_write(s::Sockets.TCPSocket, p::Ptr{UInt8}, n::UInt64)
│ @ Base ./stream.jl:1120
│ [3] unsafe_write
│ @ ~/.julia/packages/HTTP/PnoHb/src/Connections.jl:129 [inlined]
│ [4] unsafe_write(http::HTTP.Streams.Stream{HTTP.Messages.Request,
HTTP.Connections.Connection{Sockets.TCPSocket}}, p::Ptr{UInt8}, n::UInt64)
│ @ HTTP.Streams ~/.julia/packages/HTTP/PnoHb/src/Streams.jl:95
│ [5] unsafe_write
│ @ ./io.jl:698 [inlined]
│ [6] write(s::HTTP.Streams.Stream{HTTP.Messages.Request,
HTTP.Connections.Connection{Sockets.TCPSocket}}, a::Vector{UInt8})
│ @ Base ./io.jl:721
│ [7]
(::HTTP.Handlers.var"#1#2"{typeof(get_stream)})(stream::HTTP.Streams.Stream{HTTP.Messages.Request,
HTTP.Connections.Connection{Sockets.TCPSocket}})
│ @ HTTP.Handlers ~/.julia/packages/HTTP/PnoHb/src/Handlers.jl:61
│ [8] #invokelatest#2
│ @ ./essentials.jl:892 [inlined]
│ [9] invokelatest
│ @ ./essentials.jl:889 [inlined]
│ [10] handle_connection(f::Function,
c::HTTP.Connections.Connection{Sockets.TCPSocket},
listener::HTTP.Servers.Listener{Nothing, Sockets.TCPServer},
readtimeout::Int64, access_log::Nothing)
│ @ HTTP.Servers ~/.julia/packages/HTTP/PnoHb/src/Servers.jl:469
│ [11]
(::HTTP.Servers.var"#16#17"{HTTP.Handlers.var"#1#2"{typeof(get_stream)},
HTTP.Servers.Listener{Nothing, Sockets.TCPServer},
Set{HTTP.Connections.Connection}, Int64, Nothing, ReentrantLock,
Base.Semaphore, HTTP.Connections.Connection{Sockets.TCPSocket}})()
│ @ HTTP.Servers ~/.julia/packages/HTTP/PnoHb/src/Servers.jl:401
│ request =
│ HTTP.Messages.Request:
│ """
│ GET / HTTP/1.1
│ Accept-Encoding: identity
│ Host: localhost:8008
│ User-Agent: Python-urllib/3.12
│ Connection: close
│
│ """
└ @ HTTP.Servers ~/.julia/packages/HTTP/PnoHb/src/Servers.jl:483
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]