Skip to content

Synchronous main in server.py? #2

@barisbasar1209

Description

@barisbasar1209

Hello,

First of all thanks a lot for your efforts!

Does the server.py execute on your system? I tried running it but I get the following error:

bb@buntu:~/Basic-Aioquic$ python3 server.py -c cert.pem -k key.pem

frame,time,offset,recv time Traceback (most recent call last):

File "/home/bb/npa/assg9/Basic-Aioquic/server.py", line 286, in main()

File "/home/bb/npa/assg9/Basic-Aioquic/server.py", line 262, in main j = quicconnectserver(args.host,args.port,args.certificate, args.private_key,args.verbose,args.quic_log)

File "/home/bb/npa/assg9/Basic-Aioquic/server.py", line 160, in init self.quic_obj = self.create_quic_server_object()

File "/home/bb/npa/assg9/Basic-Aioquic/server.py", line 163, in create_quic_server_object return quicserver(self.hostip, self.portnr, configuration=self.configuration)

File "/home/bb/npa/assg9/Basic-Aioquic/server.py", line 100, in init super().init(self)

File "/home/bb/npa/assg9/Basic-Aioquic/server.py", line 88, in init super().init(*args, **kwargs)

File "/usr/local/lib/python3.10/dist-packages/aioquic/asyncio/protocol.py", line 16, in init loop = asyncio.get_running_loop()

RuntimeError: no running event loop

As I am new to quic, aioquic and asyncio I have no real idea what the problem is or what you intended to do. I understand where it happens and am aware of the conceptual background behind asyncio, though.
Does someone have an idea what it might be?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions