Merge branch 'master' of adastra7.net:/Yessiest/landline because i'm

stupid and i forgot how to pull before push
This commit is contained in:
Yessiest 2025-07-29 10:38:04 +00:00
commit 3a7d928c1f
15 changed files with 6 additions and 17 deletions

View File

@ -1 +0,0 @@
../../lib

View File

@ -1 +0,0 @@
../../lib

View File

@ -1 +0,0 @@
../../lib

View File

@ -1 +0,0 @@
../../lib

View File

@ -1 +0,0 @@
../../lib

View File

@ -1 +0,0 @@
../lib

View File

@ -1 +0,0 @@
../../lib

View File

@ -1 +0,0 @@
../../lib

View File

@ -1 +0,0 @@
../../lib

View File

@ -1 +0,0 @@
../../../lib

View File

@ -1 +0,0 @@
../../lib

View File

@ -1 +0,0 @@
../../lib

View File

@ -18,7 +18,7 @@ app = Landline::Server.new do
files[file.filename] = "<a href=\"files/#{filename}\">#{filename}</a>"
end
end
erubi(file("index.rhtml"), { formdata: files }).run
erb(file("index.rhtml"), { formdata: files }).run
end
serve "/files/*"
get "/" do

View File

@ -1 +0,0 @@
../../examples

View File

@ -93,7 +93,7 @@ module Landline
rescue Errno::EPIPE => e
@writable = false
_emit :error, e
close
close if @readable
nil
end
@ -188,6 +188,8 @@ module Landline
def _process_events(next_frame)
loop do
frame = next_frame.call
return nil unless frame
case frame.type
when :binary, :text, :pong then return frame
when :ping
@ -210,7 +212,7 @@ module Landline
end
rescue Errno::ECONNRESET => e
_emit :error, e
close
close if @readable or @writable
nil
end
@ -224,7 +226,7 @@ module Landline
end
rescue Errno::ECONNRESET => e
_emit :error, e
close
close if @readable or @writable
nil
end
end