No response with TCP/IP DAT

Hello,

I’m trying to create a HTTP communication with an TCP/IP DAT acting as a server. I can get the request but it seems like it is not sending a response back.

on the callback I tried:

peer.send()
peer.sendBytes()
peer.sendOSC()
dat.send()
dat.sendBytes()

and then

peer.close()

But even if those functions do return the number of bytes written, on the client side I always get an “Empty reply from server” response.

I tried it in the versions:
2018.26750
2019.11370
2018.27840

I attach a minimal file that reproduces the issue
(the request were made using curl and firefox)
HTTP_server_test.toe (4.17 KB)

Hey,

it seems like the print statement is somehow causing this. I replaced print() with debug() and now it seems to work. Could you try this? Investigating further here.

Best
Markus