Die Suche ergab 3 Treffer

von xilef
Donnerstag 21. Dezember 2006, 20:58
Forum: Netzwerkprogrammierung
Thema: asyncore tcp proxy unverstaendliche 80% cpu auslastung
Antworten: 2
Zugriffe: 791

die folgende Version funktioniert. Hat jedoch seltsamerweise immernoch circa 40% CPU peaks... ausserdem werden die Sockets nicht richtig geschlossen. ( Edit: fixed ) Ich hoffe irgendwen interessierts :) import asyncore import socket class proxy_server(asyncore.dispatcher): def __init__(self, host, p...
von xilef
Donnerstag 21. Dezember 2006, 20:46
Forum: Netzwerkprogrammierung
Thema: asyncore tcp proxy unverstaendliche 80% cpu auslastung
Antworten: 2
Zugriffe: 791

hrmpf...

i will use google before asking stupid questions...

http://mail.python.org/pipermail/python ... 59791.html
von xilef
Donnerstag 21. Dezember 2006, 20:37
Forum: Netzwerkprogrammierung
Thema: asyncore tcp proxy unverstaendliche 80% cpu auslastung
Antworten: 2
Zugriffe: 791

asyncore tcp proxy unverstaendliche 80% cpu auslastung

Heyho Python Freunde, ich verstehe nicht ganz warum unten stehender TCP Proxy 90% CPU Last erzeugt. Ich denke ich habe da etwas nicht ganz richtig implementiert, aber die Dokumentation von asyncore lieferte mir auch keine Hinweise. Ich nehme an dass recv(1) zuviel CPU Last erzeugt, aber ich will eig...