New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gopher-server: problems with long writes #15

Closed
kensanata opened this Issue Jan 8, 2018 · 1 comment

Comments

1 participant
@kensanata
Owner

kensanata commented Jan 8, 2018

Apparently the server closes the connection before sending all the bytes. Basically, on my local machine, running Windows, using Cygwin tools, the following usually returns 0, sometimes it returns 13600, but it never returns the 96975 bytes that I write to $stream on the server. When I try the same command on the same machine hosting the service itself, it works.

echo Image_2_for_2018-01-05_Why_Gopher | nc alexschroeder.ch 7070 | wc -c

Source:

Debug log on the server when it fails (this is from my Windows machine):

[Mon Jan  8 15:33:56 2018] [debug] Selector: Image_2_for_2018-01-05_Why_Gopher
[Mon Jan  8 15:33:57 2018] [info] Serving Image_2_for_2018-01-05_Why_Gopher as file
[Mon Jan  8 15:33:57 2018] [debug] Image_2_for_2018-01-05_Why_Gopher has 129301 bytes of MIME encoded data
[Mon Jan  8 15:33:57 2018] [debug] Image_2_for_2018-01-05_Why_Gopher has 96975 bytes of binary data
[Mon Jan  8 15:33:57 2018] [debug] Done
[Mon Jan  8 15:33:57 2018] [debug] Stream closes

Debug log on the server when it succeeds (this is from the same server providing the service):

[Mon Jan  8 15:34:08 2018] [debug] Selector: Image_2_for_2018-01-05_Why_Gopher
[Mon Jan  8 15:34:08 2018] [info] Serving Image_2_for_2018-01-05_Why_Gopher as file
[Mon Jan  8 15:34:08 2018] [debug] Image_2_for_2018-01-05_Why_Gopher has 129301 bytes of MIME encoded data
[Mon Jan  8 15:34:08 2018] [debug] Image_2_for_2018-01-05_Why_Gopher has 96975 bytes of binary data
[Mon Jan  8 15:34:08 2018] [debug] Done
[Mon Jan  8 15:34:08 2018] [debug] Stream writes 96975 bytes
[Mon Jan  8 15:34:08 2018] [debug] Stream closes
@kensanata

This comment has been minimized.

Show comment
Hide comment
@kensanata

kensanata Jan 9, 2018

Owner

Apparently fixed?

Owner

kensanata commented Jan 9, 2018

Apparently fixed?

@kensanata kensanata closed this Jan 9, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment