Changes between Version 2 and Version 3 of Ticket #31903


Ignore:
Timestamp:
Aug 19, 2020, 2:18:59 AM (4 years ago)
Author:
Mariusz Felisiak
Comment:

Django itself doesn't support WebSockets.

Closing per TicketClosingReasons/UseSupportChannels.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31903

    • Property Component Error reportingCore (Other)
    • Property Owner set to nobody
    • Property Resolutioninvalid
    • Property Status newclosed
    • Property Summary WebSocket OSError: headers already sentWebSocket OSError: headers already sent.
  • Ticket #31903 – Description

    v2 v3  
    111.uwsgi --http 0.0.0.0:8066 --module toraji.wsgi --master --processes 1 --threads 8 --http-websockets
    2 
     2{{{
    33*** Starting uWSGI 2.0.18 (64bit) on [Wed Aug 19 09:28:05 2020] ***
    44compiled with version: 4.4.7 20120313 (Red Hat 4.4.7-11) on 15 July 2020 02:09:52
     
    3838spawned uWSGI worker 1 (pid: 23950, cores: 8)
    3939spawned uWSGI http 1 (pid: 23951)
     40}}}
    4041
    41422.Django as backend
    4243cat views_os.py
    43 
     44{{{
    4445import json
    4546import logging
     
    5859    logger.info("done.")
    5960    return HttpResponse(None)
     61}}}
    6062
    61     3. Got errors :
     633. Got errors :
     64
     65{{{
    6266    2020-08-19 09:32:52,029 [uWSGIWorker1Core0:139922668804032] [mysqlha.views_os 14] [DEBUG]- {'a': 1}
    6367    2020-08-19 09:32:52,030 [uWSGIWorker1Core0:139922668804032] [mysqlha.views_os 16] [INFO]- ##mha socket test cmd:/tmp/mha.sh test socket
     
    6872    OSError: headers already sent
    6973    [pid: 24091|app: 0|req: 1/1] 10.107.68.57 () {48 vars in 817 bytes} [Wed Aug 19 09:32:49 2020] GET /mysqlha/test_socket_api => generated 25 bytes in 2080 msecs (HTTP/1.1 101) 4 headers in 184 bytes (0 switches on core 0)
     74}}}
Back to Top