You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require 'socket'
server = TCPServer.new 8080
while session = server.accept
request = session.gets
puts request
response = "HTTP/1.1 200 OK\r\nContent-Type: text/plain\r\n\r\nHello, world!"
session.print response
session.close
end
Backtrace
⠹ mirrord cli starting
✓ ready to launch process
✓ layer extracted
✓ agent pod created
✓ pod is ready
2022-12-22T15:58:04.767050Z ERROR ThreadId(02) mirrord_kube::api: agent disconnected
2022-12-22T15:58:04.767168Z ERROR ThreadId(02) mirrord_layer: agent connection lost
mirrord has encountered an error and is now exiting.
thread 'tokio-runtime-worker' panicked at 'explicit panic', mirrord/layer/src/lib.rs:455:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2022-12-22T15:58:04.767585Z ERROR ThreadId(04) mirrord_layer::error: Error occured in Layer >>RecvError(RecvError(()))
Terminated
infiniteregrets
changed the title
Ruby: mirrord fails with RecvError when used with ruby webserver
Ruby: mirrord panics when ran with a ruby webserver
Dec 22, 2022
This seems to be similar to #848 since explicitly specifying (server = TCPServer.new("127.0.0.1", 8080) or server = TCPServer.new("::1", 8080)) the address works but when not specified (server = TCPServer.new 8080) it panics
Bug Description
mirrord panics when run with ruby ( a simple web server)
Steps to Reproduce
mirrord exec -t pod/py-serv-deployment -c -- ruby test.rb
Backtrace
Relevant Logs
Your operating system and version
Linux mehul-machine 5.15.0-1023-azure #29~20.04.1-Ubuntu SMP Wed Oct 26 19:18:25 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Local process
/usr/bin/ruby: symbolic link to ruby2.7
Local process version
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu]
Additional Info
No response
The text was updated successfully, but these errors were encountered: