Opened 5 months ago

Last modified 5 months ago

#516 new defect

web socket error on send

Reported by: Maxim Reznik Owned by:
Priority: major Milestone: 19.0
Component: Matreshka - Web Services Version: 18.1
Keywords: websocket setvlet Cc:

Description (last modified by Maxim Reznik)

I tried to create servlet example for websocket, but it fails to send a message. Error is

PROTOCOL_ERRORaws-net-buffered.adb:147 access check failed

AWS tries to access Socket.C but it contains null.

Just after socket creation it has C /= null. But at some point a Finalize clean it up:

(gdb) bt
#0  aws.net.finalize (socket=...) at /home/max/net/aws/src/core/aws-net.adb:137
#1  0x00007f6a3fd143a6 in web_socket__handlers__aws_handlers__aws_web_socketDF__2 () at /home/max/net/matreshka/source/web/spikedog/aws/web_socket-handlers-aws_handlers.ads:69
#2  0x00007f6a3e7d2a34 in aws.server.http_utils.send (answer=..., http_server=..., line_index=..., c_stat=..., socket_taken=..., will_close=...) at /home/max/net/aws/src/core/aws-server-http_utils.adb:1657
#3  0x00007f6a3e7c2869 in aws.server.http_utils.answer_to_client (http_server=..., line_index=..., c_stat=..., socket_taken=..., will_close=...) at /home/max/net/aws/src/core/aws-server-http_utils.adb:400
#4  0x00007f6a3e7f5fdb in aws.server.protocol_handler (la=...) at /home/max/net/aws/src/core/aws-server-protocol_handler.adb:264
#5  0x00007f6a3e7f2e81 in aws.server.line (<_task>=...) at /home/max/net/aws/src/core/aws-server.adb:327
#6  0x00007f6a3da253f6 in system.tasking.stages.task_wrapper () from /home/max/net/gnat-gpl-2019/lib/gcc/x86_64-pc-linux-gnu/8.3.1/adalib/libgnarl-2019.so

Change History (1)

comment:1 by Maxim Reznik, 5 months ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.