bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gawk] /inet/tcp receive TCP packet bug


From: Andrew J. Schorr
Subject: Re: [bug-gawk] /inet/tcp receive TCP packet bug
Date: Mon, 28 Dec 2015 16:20:58 -0500
User-agent: Mutt/1.5.23 (2014-03-12)

Hi,

On Wed, Dec 23, 2015 at 10:54:05AM +0300, Владимир Губарев wrote:
>  Hello. When i tried to write WebSocket server on gawk i've got one trouble. 
> WebSocket connection setting up after handshake (http header) and after that 
> host and client exchange data by sending dataframes. So i can make handshake 
> and send frames from host to client (browser), but cannot receive it. I saw 
> TCP-packet from client to host, but construction "host |& getline packet" 
> cannot receive that (following by getline code isnt executed)
> Code on github:  https://github.com/MagistrZoom/AWK/blob/master/server  . If 
> it is not a bug, can you tell me, how i can fix that?

Thanks for the bug report. We'd be happy to help, but I'm having trouble 
understanding
what is going wrong. Can you please explain how to reproduce the problem, and 
what is
actually happening vs. what you expect to happen? It's a lot of code to wade 
through.
A smaller, simple example of the problem you are encountering would be really 
helpful.
I have one initial question -- why is all the logic in an END rule? Is there an 
input
file? If not, it typically makes more sense to use a BEGIN rule for the program 
logic,
rather than an END rule. It won't get to the END rule until it finishes 
processing input,
which might never happen if there is none...

Regards,
Andy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]