Message60976
| Author |
josiahcarlson |
| Recipients |
| Date |
2006年08月27日.17:44:43 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
Logged In: YES
user_id=341410
Because the socket is in blocking mode, performing
self.fp.read(x) with an x > 1 will generally block until it
has read x bytes or the other end disconnects. As such, I
believe it is intended behavior.
For your own application, you could perhaps write a response
class that uses non-blocking sockets to handle readline,
switching back to blocking sockets after header reading is over. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年01月20日 09:58:55 | admin | link | issue1542407 messages |
| 2008年01月20日 09:58:55 | admin | create |
|